1
1
/* SA-MP Functions
2
2
*
3
- * (c) Copyright 2005-2015 , SA-MP Team
3
+ * (c) Copyright 2005-2017 , SA-MP Team
4
4
*
5
5
*/
6
6
35
35
# define INVALID_VEHICLE_ID (0x FFFF )
36
36
# define INVALID_ACTOR_ID (0x FFFF )
37
37
# define NO_TEAM (255 )
38
- # define MAX_OBJECTS (1000 )
38
+ # define MAX_OBJECTS (2000 )
39
39
# define INVALID_OBJECT_ID (0x FFFF )
40
40
# define MAX_GANG_ZONES (1024 )
41
41
# define MAX_TEXT_DRAWS (2048 )
@@ -127,7 +127,7 @@ native AllowAdminTeleport(allow);
127
127
native SetDeathDropAmount (amount);
128
128
native CreateExplosion (Float: X, Float: Y, Float: Z, type, Float: Radius);
129
129
native EnableZoneNames (enable);
130
- native UsePlayerPedAnims (); // Will cause the players to use CJ running/walking animations
130
+ native UsePlayerPedAnims (); // Will cause the players to use CJ running/walking animations
131
131
native DisableInteriorEnterExits (); // will disable all interior enter/exits in the game.
132
132
native SetNameTagDrawDistance (Float: distance); // Distance at which nametags will start rendering on the client.
133
133
native DisableNameTagLOS (); // Disables the nametag Line-Of-Sight checking
@@ -138,6 +138,18 @@ native LimitPlayerMarkerRadius(Float:marker_radius);
138
138
native ConnectNPC (name[], script[]);
139
139
native IsPlayerNPC (playerid);
140
140
141
+ // Artwork/NetModels
142
+ # define DOWNLOAD_REQUEST_EMPTY 0
143
+ # define DOWNLOAD_REQUEST_MODEL_FILE 1
144
+ # define DOWNLOAD_REQUEST_TEXTURE_FILE 2
145
+
146
+ native AddCharModel (baseid, newid, dffname[], txdname[]);
147
+ native AddSimpleModel (virtualworld, baseid, newid, dffname[], txdname[]);
148
+ native AddSimpleModelTimed (virtualworld, baseid, newid, dffname[], txdname[], timeon, timeoff);
149
+ native FindModelFileNameFromCRC (crc, retstr[], retstr_size);
150
+ native FindTextureFileNameFromCRC (crc, retstr[], retstr_size);
151
+ native RedirectDownload (playerid, url[]);
152
+
141
153
// Admin
142
154
native IsPlayerAdmin (playerid);
143
155
native Kick (playerid);
@@ -394,6 +406,8 @@ forward OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
394
406
forward OnIncomingConnection (playerid, ip_address[], port);
395
407
forward OnTrailerUpdate (playerid, vehicleid);
396
408
forward OnVehicleSirenStateChange (playerid, vehicleid, newstate);
409
+ forward OnPlayerFinishedDownloading (playerid, virtualworld);
410
+ forward OnPlayerRequestDownload (playerid, type, crc);
397
411
398
412
# define CLICK_SOURCE_SCOREBOARD 0
399
413
forward OnPlayerClickPlayer (playerid, clickedplayerid, source);
0 commit comments