11/* SA-MP Functions
22 *
3- * (c) Copyright 2005-2015 , SA-MP Team
3+ * (c) Copyright 2005-2017 , SA-MP Team
44 *
55 */
66
3535# define INVALID_VEHICLE_ID (0x FFFF )
3636# define INVALID_ACTOR_ID (0x FFFF )
3737# define NO_TEAM (255 )
38- # define MAX_OBJECTS (1000 )
38+ # define MAX_OBJECTS (2000 )
3939# define INVALID_OBJECT_ID (0x FFFF )
4040# define MAX_GANG_ZONES (1024 )
4141# define MAX_TEXT_DRAWS (2048 )
@@ -127,7 +127,7 @@ native AllowAdminTeleport(allow);
127127native SetDeathDropAmount (amount);
128128native CreateExplosion (Float: X, Float: Y, Float: Z, type, Float: Radius);
129129native 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
131131native DisableInteriorEnterExits (); // will disable all interior enter/exits in the game.
132132native SetNameTagDrawDistance (Float: distance); // Distance at which nametags will start rendering on the client.
133133native DisableNameTagLOS (); // Disables the nametag Line-Of-Sight checking
@@ -138,6 +138,18 @@ native LimitPlayerMarkerRadius(Float:marker_radius);
138138native ConnectNPC (name[], script[]);
139139native IsPlayerNPC (playerid);
140140
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+
141153// Admin
142154native IsPlayerAdmin (playerid);
143155native Kick (playerid);
@@ -394,6 +406,8 @@ forward OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
394406forward OnIncomingConnection (playerid, ip_address[], port);
395407forward OnTrailerUpdate (playerid, vehicleid);
396408forward OnVehicleSirenStateChange (playerid, vehicleid, newstate);
409+ forward OnPlayerFinishedDownloading (playerid, virtualworld);
410+ forward OnPlayerRequestDownload (playerid, type, crc);
397411
398412# define CLICK_SOURCE_SCOREBOARD 0
399413forward OnPlayerClickPlayer (playerid, clickedplayerid, source);
0 commit comments