//TOPO DO GM INCLUDE
#include <a_samp>
// NEW GLOBAL TOPO DO GM
new Weapons[MAX_PLAYERS][11], Ammo[MAX_PLAYERS][11];
//CALLBACK
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if((newstate == PLAYER_STATE_DRIVER) || (newstate == PLAYER_STATE_PASSENGER))
{
for(new j=0; j<11; j++) GetPlayerWeaponData(playerid, j, Weapons[playerid][j], Ammo[playerid][j]);
ResetPlayerWeapons(playerid);
}
if((newstate == PLAYER_STATE_ONFOOT) && ((oldstate == PLAYER_STATE_DRIVER) || (oldstate == PLAYER_STATE_PASSENGER)))
{
for(new j=0; j<11; j++) GivePlayerWeapon(playerid, Weapons[playerid][j], Ammo[playerid][j]);
}
return 1;
}
[SA-MP] Anti-DB
Assinar:
Postar comentários (Atom)
0 comentários:
Postar um comentário