Weapons Losing ..
#5

PHP код:

new weapons[MAX_PLAYERS][13][2], bool:death[MAX_PLAYERS] = false;
public 
OnPlayerDeath(playeridkilleridreason)
{
      for(new 
012s++)
      {
            
GetPlayerWeaponData(playeridsweapons[playerid][s][1], weapons[playerid][s][2]);
      }
      
death[playerid] = true;
      return 
1;
}
public 
OnPlayerSpawn(playerid)
{
      if(
death[playerid])
      {
            for(new 
012s++)
            {
                  
GivePlayerWeapon(playeridweapons[playerid][s][1], weapons[playerid][s][2]);
            }
            
death[playerid] = false;
      }
      return 
1;

Reply


Messages In This Thread
-Deleted- - by GeekSiMo - 30.05.2014, 15:25
Re : Weapons Losing .. - by S4t3K - 30.05.2014, 15:46
Re: Weapons Losing .. - by GeekSiMo - 30.05.2014, 15:53
Re: Weapons Losing .. - by Dangjai - 30.05.2014, 15:54
Re : Weapons Losing .. - by S4t3K - 30.05.2014, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)