30.05.2014, 16:01
PHP код:
new weapons[MAX_PLAYERS][13][2], bool:death[MAX_PLAYERS] = false;
public OnPlayerDeath(playerid, killerid, reason)
{
for(new s = 0; s < 12; s++)
{
GetPlayerWeaponData(playerid, s, weapons[playerid][s][1], weapons[playerid][s][2]);
}
death[playerid] = true;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(death[playerid])
{
for(new s = 0; s < 12; s++)
{
GivePlayerWeapon(playerid, weapons[playerid][s][1], weapons[playerid][s][2]);
}
death[playerid] = false;
}
return 1;
}