Weapons Losing ..
#1

-Deleted-
Reply
#2

Get the player weapons when he death, then give him when he spawns.
Store the weapons in an array (13 cells will be enough), get them in "OnPlayerDeath", create a boolean var set to false by default and set it to true when the player death. in "OnPlayerSpawn", set this var to false after giving the weapon.
Reply
#3

show me how plzz !
Reply
#4

Quote:
Originally Posted by GeekSiMo
Посмотреть сообщение
show me how plzz !
this better to learn yourself ...
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)