SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: NaS
Forum: Scripting Help 20/04/2018, 12:40 PM
Replies: 7
Views: 238
Posted By NaS
Re: pvar vs playerinfo[][]

The big advantage of regular Arrays with Enums is speed. If you have data that is constantly in use and accessed very often it may be better to use an Array, however PVars aren't slow either so this...
Forum: Server Support 19/04/2018, 04:24 PM
Replies: 6
Views: 127
Posted By NaS
Re: Question (Who deleted previous thread?)

log-core is an extension which basically does the main work for logging stuff if I got it right.

There are multiple plugins that use it (for example mysql and the Log Plugin). Both use the same...
Forum: Scripting Help 19/04/2018, 10:57 AM
Replies: 2
Views: 68
Posted By NaS
Re: none of these station works

Shoutcast used to direct-link to a stream, if they didn't change it back to the old method it should still work. The old method used a .pls playlist which doesn't work with Audio Streaming.
...
Forum: Scripting Help 19/04/2018, 10:52 AM
Replies: 5
Views: 101
Posted By NaS
Re: help hunger games plane

That is the jet object. Just move it like Twixx suggested and attach the camera to it.

The player is not actually on that plane, it is spectate mode combined with AttachCameraTo(Player)Object...
Forum: Scripting Help 18/04/2018, 12:15 PM
Replies: 8
Views: 173
Posted By NaS
Re: Zones problem

Dynamic Areas cannot change colors as they aren't visible. They are only existing server-side. So good luck with that.

You'll have to save both IDs, the dyn. Area ID and the Gang Zone ID in...
Forum: Screenshots and Videos 18/04/2018, 12:08 PM
Replies: 17
Views: 972
Posted By NaS
Re: SAMP 0.3.8 Drone system

Well it's not that far off. Quadrocopters were invented way before 1992, even RC drones. The only difference is that they were complete manually controlled instead of a microchip which handled the...
Forum: Scripting Help 16/04/2018, 10:45 PM
Replies: 8
Views: 173
Posted By NaS
Re: Zones problem

The ZoneID should probably contain the Gang Zone ID, but you don't save the Gang Zone ID at all, you're saving the Dynamic Area ID to the ZoneID array.

As a result it tries to flash the ID of the...
Forum: Scripting Help 16/04/2018, 01:47 PM
Replies: 2
Views: 56
Posted By NaS
Re: Mapping Problem [San Fierro Garage Removed]

You can't unfortunately. This is an effect added by so called CULL zones which cannot be edited or removed in SAMP, sadly.
Forum: Scripting Help 14/04/2018, 07:11 PM
Replies: 2
Views: 93
Posted By NaS
Re: [DFile] Player's account problem.

I assume you're running on Linux?

File names are case-sensitive there, so "File" is not the same as "file".

To make it non-case-sensitive you can convert all file names to lower case and always...
Forum: Tutorials 13/04/2018, 11:54 PM
Replies: 9
Views: 379
Posted By NaS
Re: How to make 2 rcon system. [Dual Security]

On first glance this basically works, but still the main issue is that IF you manage to get the RCON password you can still do everything with it, just not from ingame (Remote Console).

Also you...
Forum: Scripting Help 13/04/2018, 10:11 PM
Replies: 7
Views: 121
Posted By NaS
Re: $quickstrings in commands

You could write a function to process the phrases, and use that function in chat and in command arguments (you could replace the text BEFORE processing the actual commands so that you don't have to...
Forum: Scripting Help 12/04/2018, 03:57 PM
Replies: 11
Views: 220
Posted By NaS
Re: Calculate RZ from X and Y

You cannot just use the coordinates. That gives an angle relative to the SA Map Center - 0.0, 0.0 (which is completely wrong).

You need 2 points from which you can calculate an angle (in the...
Forum: Scripting Help 12/04/2018, 02:50 PM
Replies: 11
Views: 220
Posted By NaS
Re: Calculate RZ from X and Y

The actual implementation uses atan2(x, y) but is clockwise.

atan2(y, x) also works, but it's counter-clockwise + 90.0 (x and y vectors switched).

So if you use it like you did, you must...
Forum: Scripting Help 12/04/2018, 02:28 PM
Replies: 11
Views: 220
Posted By NaS
Re: Calculate RZ from X and Y

There's no direction given from these coordinates, so it's not possible to calculate a Z rotation from that coords alone, except you want to have the Z rotation pointing from one coordinate to the...
Forum: Scripting Help 05/04/2018, 08:07 PM
Replies: 2
Views: 69
Posted By NaS
Re: question

Nope, but you could make it similar to PlayStation Cheats (Fire, Fire, Jump, Crouch, Up) etc.
Forum: Client Support 04/04/2018, 03:19 PM
Replies: 10
Views: 768
Posted By NaS
Re: Dual monitor?

This is your best bet so far. There may be other tools, but I can tell for sure that this is what you want to do (it's working really well, have been using it in the past when I didn't have 2...
Forum: Scripting Help 04/04/2018, 02:51 PM
Replies: 3
Views: 163
Posted By NaS
Re: String lenght, or something else?

It's hard to tell where exactly the error appears without knowing the values for some of the Arrays you use. Could you compile your mode with debug symbols and reproduce it so that crashdetect shows...
Forum: Scripting Help 03/04/2018, 02:32 PM
Replies: 2
Views: 118
Posted By NaS
Re: Good threads/videos/sources starting out

I personally don't like YouTube Tutorials for things like Coding, learning a Language or similar, if you watch them I can only suggest trying to do what the Guy in the video does at the same time...
Forum: Scripting Help 02/04/2018, 08:33 AM
Replies: 2
Views: 92
Posted By NaS
Re: "dini_FloatSet" - decimal place from inputtext.

That is a float precision issue. The problem is that even if you save it as 1.1 it will still load as 1.0999.

You can however save the inputtext as string. Use sscanf to verify the validity of the...
Forum: Scripting Help 31/03/2018, 09:10 PM
Replies: 2
Views: 128
Posted By NaS
Re: OnPlayerFinishedDownloading not being called on Localhost

Just making sure, are the models or skins successfully loaded?

If you don't have any custom models/skins try turning off artwork ("artwork 0" in server.cfg).
Forum: SA-MP 0.3.DL 31/03/2018, 02:25 PM
Replies: 2
Views: 217
Posted By NaS
Re: Error: Function not registered:

You are lacking a Plugin (you either forgot to add it to the "plugins" line in your server.cfg or it failed to load).

Looking at the natives I guess it is this one:
...
Forum: Scripting Help 30/03/2018, 08:31 PM
Replies: 4
Views: 122
Posted By NaS
Re: How to create a custom array (I don't know if I got that right)

Your code is actually almost correct. Just a small thing - you need to stop the loop once a free slot is found (otherwise it will fill ALL empty slots with the new one).

You can do this by adding...
Forum: Scripting Help 30/03/2018, 08:13 PM
Replies: 4
Views: 122
Posted By NaS
Re: How to create a custom array (I don't know if I got that right)

Each Entry (Slot) should have a variable (in the enum) to tell whether that slot exists or not, preferably with bool tag.

Something like "ArrowExists" or "ArrowUsed".

When a arrow is created,...
Forum: Scripting Help 30/03/2018, 04:48 PM
Replies: 7
Views: 188
Posted By NaS
Re: SAMP Freeze in Dillimore

Are there tuned vehicles in your Server (more specifically in or near Dillimore) that were tuned by players?

Does it show any warnings (exceptions) in the chat before it crashes?

Could you post...
Forum: Scripting Help 30/03/2018, 04:31 PM
Replies: 8
Views: 117
Posted By NaS
Re: setting boundaries

Yes exactly that is causing it.

You need to adjust the coordinates in AddPlayerClass to somewhere inside the boundaries.

You can also use SetSpawnInfo to update Player spawning positions at any...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 10:48 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.