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: Everything and Nothing 16/06/2018, 03:04 PM
Replies: 13
Views: 943
Posted By NaS
Re: Old times

GF shouldn't have been released so proper scripters could have had the chance to make a "base RP gamemode" everyone would have used instead of that mess which spammed the Scripting Help section.
Forum: Scripting Help 14/06/2018, 12:16 AM
Replies: 6
Views: 201
Posted By NaS
Re: assign number automatically as array?

You'll need the playerid together with the object ID so storing it in an array that is indexed by a playerid would be a good idea, depending on how many slots there should be per player.
Forum: Client Support 12/06/2018, 05:12 PM
Replies: 6
Views: 490
Posted By NaS
Re: I can't move the mouse after I press ESC or mouse stuck

It fixes the mouse issue you are experiencing.

If you have a Gamepad you can also connect it to your PC. If GTA SA detects it the mouse issue will also be gone (weird bug).
Forum: Scripting Help 12/06/2018, 02:54 PM
Replies: 6
Views: 120
Posted By NaS
Re: Where is wrong?

That doesn't look very correct though. Even if it does work, it will not be a true randomized float (it will not be precise).

If you want a real random float you can do that by calculating a...
Forum: Scripting Help 10/06/2018, 03:57 PM
Replies: 2
Views: 96
Posted By NaS
Re: [Question] Checking Aircraft Landing Gears (PAWN.RakNet?)

You will need PawnRakNet as you already said.

The Landing gear is part of the car sync:

https://github.com/urShadow/Pawn.RakNet/wiki/Synchronization-structures

See PR_InCarSync.

If you...
Forum: Plugin Development 04/06/2018, 02:03 PM
Replies: 37
Views: 8,546
Posted By NaS
Re: SATTP - SA:MP Embedded Web server

Why? The webserver can be online at all times during testing as well. The files can be in your SAMP Folder regardless of using a standalone webserver either.
Forum: Plugin Development 02/06/2018, 04:18 PM
Replies: 37
Views: 8,546
Posted By NaS
Re: SATTP - SA:MP Embedded Web server

Why don't you use a standalone webserver for that? There are super simple webservers and they will not interfere with your SAMP Server whatsoever. For what we know there could be exploits, bugs and...
Forum: Plugin Development 02/06/2018, 01:13 AM
Replies: 37
Views: 8,546
Posted By NaS
Re: SATTP - SA:MP Embedded Web server

SAMPGDK is not required for the plugin to work. There are no Pawn Natives or other communication between the SAMP Server/PAWN and the Plugin.

So, it should still work as expected. I tried it and...
Forum: Scripting Help 01/06/2018, 04:15 PM
Replies: 3
Views: 75
Posted By NaS
Re: object reconstruction?

You need to respawn it by simply destroying and re-creating it. That's the only way to "repair" it (eg. respawn exploded barrels or destroyed fences).

If you use the Streamer Plugin you can simply...
Forum: Scripting Help 01/06/2018, 01:50 AM
Replies: 2
Views: 83
Posted By NaS
Re: IsPlayerConnected returns 0

mysql_tquery(sql_connection, query, "OnAccountCheck", "r", playerid);

It probably passes an invalid id. r passes a reference but in this case you should pass an integer. Use i instead of r.
Forum: Scripting Help 28/05/2018, 02:58 PM
Replies: 8
Views: 145
Posted By NaS
Re: doubt

There are also differences in the delay between formats. Try using 64 kbps M4A/AAC vs. 64 kbps MP3. The M4A will start playing earlier than an MP3 (which needs a fair amount of data before it can be...
Forum: Scripting Help 28/05/2018, 03:11 AM
Replies: 8
Views: 145
Posted By NaS
Re: doubt

The Audio Plugin is probably the only real alternative to Audio Streaming. For people who do not have it you can still use Audio Streams.

Theoretically you could offer the Sound Bank Files to...
Forum: Scripting Help 27/05/2018, 02:54 AM
Replies: 1
Views: 79
Posted By NaS
Re: MySQL: StrickenKid > BlueG

Nice. Good luck.


If you tell us what's wrong, or what problems you have, it would make it easier to actually help you.
Forum: SA-MP 0.3.DL 25/05/2018, 01:14 PM
Replies: 11
Views: 988
Posted By NaS
Re: Skin wont work

That's a callback. I'm not entirely sure if it is required to be in your gamemode, but you can try it anyway:

Just add this to your script somewhere


public...
Forum: SA-MP 0.3.DL 24/05/2018, 05:11 PM
Replies: 11
Views: 988
Posted By NaS
Re: Skin wont work

Sounds weird. Did you add the new callbkack to the script (OnPlayerFinishedDownloading) and return 1 insde it? Not quite sure if that could cause it but if I remember correctly it should be added.
Forum: Scripting Help 24/05/2018, 10:15 AM
Replies: 8
Views: 337
Posted By NaS
Re: I want only headshots to do damage.

The problem with that code is that you can still die from bodyshots if your health is lower or equal to the damage done.

If you don't yet use SAMP's team system in your mode (or minigame, where...
Forum: SA-MP 0.3.DL 24/05/2018, 10:11 AM
Replies: 11
Views: 988
Posted By NaS
Re: Skin wont work

Did both files load properly? The model and the texture?

No warnings/errors at all?

You could try replacing a gta sa skin to confirm if the skin properly works, to rule out a broken model or...
Forum: SA-MP 0.3.DL 23/05/2018, 12:37 PM
Replies: 3
Views: 604
Posted By NaS
Re: Problem with adding custom skins

Make sure artwork is set to enabled in your server.cfg.

Also, on Linux all file names are case sensitive, so if you have a skin named something like "Model.dff", writing "model.dff" into your...
Forum: Scripting Help 21/05/2018, 06:58 AM
Replies: 3
Views: 155
Posted By NaS
Re: Optimizing this code

Use GetPlayerDistanceFromPoint().

It does the same math but with 6 less native calls (you don't need to do GetPlayerPos(), furthermore each float operation is one native call, since PAWN can't do...
Forum: SA-MP 0.3.DL 19/05/2018, 06:14 PM
Replies: 2
Views: 474
Posted By NaS
Re: Textures Missing - Blender

Obviously the textures are there. It would be white if it had no texture at all.

Align and scale them properly.
Forum: Scripting Help 19/05/2018, 03:47 PM
Replies: 4
Views: 122
Posted By NaS
Re: Player names being cut short

Check all accesses to the pName array. If this is permanent for each player, there must be place where you accidently alter the array. Maybe a strcat with mixed up arguments?

MAX_PLAYER_NAME...
Forum: Scripting Help 17/05/2018, 10:53 PM
Replies: 5
Views: 144
Posted By NaS
Re: Vehicle interaction

No it won't if you do it cleverly.

Create a large area for the object. Then get all players that are in the specified area & meet the conditions. For those players (should only be a few, if any)...
Forum: Bug Reports 16/05/2018, 11:04 PM
Replies: 4
Views: 869
Posted By NaS
Re: GetActorPos is not working or updating!

The actor positions are synced only from the server to the client. If they are pushed away client-side or fall through the ground or similar it is not synced, therefore the server still holds the...
Forum: Scripting Help 13/05/2018, 05:24 PM
Replies: 2
Views: 150
Posted By NaS
Re: How can I create a fake checkpoint?

That checkpoint is a mission checkpoint and can be achieved by using a MapIcon with types MAP_ICON_LOCAL_CHECKPOINT and MAP_ICON_GLOBAL_CHECKPOINT.

http://wiki.sa-mp.com/wiki/SetPlayerMapIcon
...
Forum: Scripting Help 08/05/2018, 02:37 PM
Replies: 3
Views: 88
Posted By NaS
Re: array sizes do not match, or destination array is too small

If you assign an Array to another Array directly, they must have the exact same size.

desc is 128 cells, how big is aCDesc?

If it is 128 cells too, it might be because it's an enum (I think...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:23 AM.


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