30.05.2014, 15:25
(
Последний раз редактировалось GeekSiMo; 30.05.2014 в 18:25.
Причина: -Deleted-
)
-Deleted-
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;
}