SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: NaS
Forum: Scripting Help 16/11/2018, 04:43 PM
Replies: 8
Views: 178
Posted By NaS
Re: easydb.inc help

You're missing the size parameter and keys parameter. This is the function:

RetrieveKey(table, keys[] = "", size = sizeof (keys), const column[], { _,Float }:...);

"Name" must be assigned to...
Forum: Scripting Help 16/11/2018, 01:35 PM
Replies: 13
Views: 210
Posted By NaS
Re: Help: *****_GoTo dude

There are two callbacks for move paths you can use for this:

*****_OnFinishMovePath(npcid, pathid); // Called when the whole path ends
*****_OnFinishMovePathPoint(npcid, pathid, pointid); //...
Forum: Filterscripts 16/11/2018, 11:40 AM
Replies: 12
Views: 3,685
Posted By NaS
Re: Dynamic Vehicles - GTA's Spawns

Fixed. Thanks for the reminder.
Forum: Scripting Help 16/11/2018, 06:23 AM
Replies: 2
Views: 61
Posted By NaS
Re: check is mail vaild

I'd rather use sscanf than editing it, especially since it doesn't even check for valid domains at all (so editing the code to check for specific domains would require more work than just solving it...
Forum: General 16/11/2018, 05:52 AM
Replies: 101
Views: 11,453
Posted By NaS
Re: SA-MP Source Code Leaked

I'm pretty sure they base their mod on the 0.2 source code leak, and since then added features themselves (copied them 1:1). So all they can do is release their "own" code.
Lots of bugs that were...
Forum: Scripting Help 15/11/2018, 04:35 PM
Replies: 2
Views: 57
Posted By NaS
Re: Help: ***** NPC Attack Inside a Car.

AFAIK NPCs aren't able to drive by at all. If you record yourself drive by-ing in a car and playback the recording using SAMP's NPC functions, it also won't happen (this suggests it's a SAMP NPC...
Forum: Everything and Nothing 15/11/2018, 04:28 PM
Replies: 45
Views: 795
Posted By NaS
Re: What music instrument you can play?

Drum Machines only go "PA PA PA PA" if you tell them to.

Most electronic instruments (let's call it that) also have for example velocity, volume and other options and ways to play them. It just...
Forum: Scripting Help 14/11/2018, 05:23 PM
Replies: 4
Views: 87
Posted By NaS
Re: Help: NPC Driver dont move.

Do you have SAfull.hmap in your scriptfiles folder? Also does it say something in the server log about MapAndreas?

One thing I just noticed is that you might have to wait a bit with *****_GoTo...
Forum: Scripting Help 14/11/2018, 05:00 PM
Replies: 4
Views: 87
Posted By NaS
Re: Help: NPC Driver dont move.

*****_GoTo works for drivers too.

Problem might be that you didn't set up MapAndreas correctly.

Download MapAndreas and install it.

Then put this into OnFilterScriptInit or OnGameModeInit:
...
Forum: Discussion 14/11/2018, 04:39 PM
Replies: 1
Views: 66
Posted By NaS
Re: Moving Icon on textdraw

You'll need to calculate the player position on the Map TextDraw, which depends on the Map's size and position.
The SA Map is 6000.0m x 6000.0m, the TD grid is 640 x 480, and the map is just a part...
Forum: Scripting Help 13/11/2018, 04:17 PM
Replies: 3
Views: 51
Posted By NaS
Re: GivePlayerWeapon

Even better:

Use the defines that already exist, for example WEAPON_DESERT_EAGLE.
Then you never need to look up IDs or make comments to remember which weapon you've placed there!
Forum: Scripting Help 13/11/2018, 03:39 PM
Replies: 5
Views: 129
Posted By NaS
Re: Variable

This is also explained somewhere in pawn-lang.dff, enums just exist for the compiler, basically all enum entries get replaced by indexes when compiling and the arrays are just regular arrays.
So...
Forum: Tools and Files 13/11/2018, 03:08 PM
Replies: 7
Views: 441
Posted By NaS
Re: [In Development] A New Powerful Scene Editor

I'll tell you how I did it with my editor for an example, I added "Extra IDs" (could call it properties as well) which I can add/remove from any Item inside the Editor.
So if I want to give an Item...
Forum: Scripting Help 12/11/2018, 04:06 PM
Replies: 4
Views: 77
Posted By NaS
Re: EditPlayerObject

You can use EditPlayerObject too, but you'll need to get the corresponding Player Object ID from the Streamer Object (Streamer_GetInternalID or so).
But that isn't really neccessary as...
Forum: Tools and Files 12/11/2018, 04:04 PM
Replies: 7
Views: 441
Posted By NaS
Re: [In Development] A New Powerful Scene Editor

Ah damn exactly my Map Editor just in C# xD

No seriously, looks good. I like the direct loading instead of having to paste around code.
Apart from an Item name ("Gate1" in your example) could...
Forum: Scripting Help 12/11/2018, 03:43 PM
Replies: 4
Views: 77
Posted By NaS
Re: EditPlayerObject

EditPlayerObject for Streamer Objects is not quite doing what you expect, since the Player Object ID won't be equal to the Streamer's Object ID.
Use EditDynamicObject.
Forum: Scripting Help 11/11/2018, 07:57 PM
Replies: 7
Views: 86
Posted By NaS
Re: Streamer pickups

Item toggling through that native isn't always updated when it's called. You can also add/remove an ID from the playerid array using Streamer_AppendArrayData and Streamer_RemoveArrayData on...
Forum: Scripting Help 10/11/2018, 02:00 PM
Replies: 2
Views: 59
Posted By NaS
Re: Help: *****_StopAim dont work for me

You'll need to use StopShoot too iirc.
Otherwise try to reset the NPC's keys by doing

*****_SetKeys(bot1, 0, 0, 0);

***** sets the keys automatically when using AimAt/ShootAt etc. So resetting...
Forum: Filterscripts 09/11/2018, 02:31 PM
Replies: 12
Views: 3,685
Posted By NaS
Re: Dynamic Vehicles - GTA's Spawns

Yes, all changes are saved to the file on gamemode restart/filterscript unload.
Forum: Scripting Help 08/11/2018, 06:42 PM
Replies: 9
Views: 237
Posted By NaS
Re: IsPlayerFacingVehicle - my math sucks

Way too complicated. A loop even?

Look at Nero3D's post OP quoted.

Get the world angle from the player to the car (atan2 of the Player Pos - Vehicle Pos). Then get the player's facing angle...
Forum: Scripting Help 05/11/2018, 06:10 PM
Replies: 12
Views: 173
Posted By NaS
Re: singleplayer checkpoints

To reset the camera after using SetPlayerCameraPos you can use SetCameraBehindPlayer.

When pressing F the menu will be automatically hidden and OnPlayerExitedMenu will be called:
...
Forum: Scripting Help 05/11/2018, 05:55 PM
Replies: 12
Views: 173
Posted By NaS
Re: singleplayer checkpoints

There are 2 actual checkpoints in SAMP, ignoring race CPs here. The standard checkpoint (SetPlayerCheckpoint) which can be modified in size, it's red and has multiple layers.
Then there are also the...
Forum: Scripting Help 05/11/2018, 05:50 PM
Replies: 13
Views: 129
Posted By NaS
Re: Object help

I know what you mean, so not sure if a video is neccessary, but maybe it helps.
That's what usually happens when ToggleIdleUpdate is off, so I have no idea why it doesn't work for you with...
Forum: Scripting Help 05/11/2018, 04:54 PM
Replies: 13
Views: 129
Posted By NaS
Re: Object help

Are the objects you attach added to the interior (and virtual world if you change that too)?
Forum: Scripting Help 05/11/2018, 04:01 PM
Replies: 13
Views: 129
Posted By NaS
Re: Object help

Then it should work as expected, at least it does for me. Are you talking about the original mod shop or a custom mod shop/garage?
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:44 AM.


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