diff --git a/a_players.inc b/a_players.inc index 953dbdb..0d8833b 100755 --- a/a_players.inc +++ b/a_players.inc @@ -1,6 +1,6 @@ /* SA-MP Player Functions * - * (c) Copyright 2005-2015, SA-MP Team + * (c) Copyright 2005-2017, SA-MP Team * */ @@ -89,6 +89,7 @@ native SetPlayerColor(playerid,color); native GetPlayerColor(playerid); native SetPlayerSkin(playerid, skinid); native GetPlayerSkin(playerid); +native GetPlayerCustomSkin(playerid); native GivePlayerWeapon(playerid, weaponid, ammo); native ResetPlayerWeapons(playerid); native SetPlayerArmedWeapon(playerid, weaponid); diff --git a/a_samp.inc b/a_samp.inc index be183e5..3cacedd 100755 --- a/a_samp.inc +++ b/a_samp.inc @@ -1,6 +1,6 @@ /* SA-MP Functions * - * (c) Copyright 2005-2015, SA-MP Team + * (c) Copyright 2005-2017, SA-MP Team * */ @@ -35,7 +35,7 @@ #define INVALID_VEHICLE_ID (0xFFFF) #define INVALID_ACTOR_ID (0xFFFF) #define NO_TEAM (255) -#define MAX_OBJECTS (1000) +#define MAX_OBJECTS (2000) #define INVALID_OBJECT_ID (0xFFFF) #define MAX_GANG_ZONES (1024) #define MAX_TEXT_DRAWS (2048) @@ -127,7 +127,7 @@ native AllowAdminTeleport(allow); native SetDeathDropAmount(amount); native CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:Radius); native EnableZoneNames(enable); -native UsePlayerPedAnims(); // Will cause the players to use CJ running/walking animations +native UsePlayerPedAnims(); // Will cause the players to use CJ running/walking animations native DisableInteriorEnterExits(); // will disable all interior enter/exits in the game. native SetNameTagDrawDistance(Float:distance); // Distance at which nametags will start rendering on the client. native DisableNameTagLOS(); // Disables the nametag Line-Of-Sight checking @@ -138,6 +138,18 @@ native LimitPlayerMarkerRadius(Float:marker_radius); native ConnectNPC(name[], script[]); native IsPlayerNPC(playerid); +// Artwork/NetModels +#define DOWNLOAD_REQUEST_EMPTY 0 +#define DOWNLOAD_REQUEST_MODEL_FILE 1 +#define DOWNLOAD_REQUEST_TEXTURE_FILE 2 + +native AddCharModel(baseid, newid, dffname[], txdname[]); +native AddSimpleModel(virtualworld, baseid, newid, dffname[], txdname[]); +native AddSimpleModelTimed(virtualworld, baseid, newid, dffname[], txdname[], timeon, timeoff); +native FindModelFileNameFromCRC(crc, retstr[], retstr_size); +native FindTextureFileNameFromCRC(crc, retstr[], retstr_size); +native RedirectDownload(playerid, url[]); + // Admin native IsPlayerAdmin(playerid); native Kick(playerid); @@ -394,6 +406,8 @@ forward OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid); forward OnIncomingConnection(playerid, ip_address[], port); forward OnTrailerUpdate(playerid, vehicleid); forward OnVehicleSirenStateChange(playerid, vehicleid, newstate); +forward OnPlayerFinishedDownloading(playerid, virtualworld); +forward OnPlayerRequestDownload(playerid, type, crc); #define CLICK_SOURCE_SCOREBOARD 0 forward OnPlayerClickPlayer(playerid, clickedplayerid, source);