Check player's weapons
#4

pawn Код:
new Weapons[2];
GetPlayerWeaponData(playerid, 7, Weapons[0]);
GetPlayerWeaponData(playerid, 8, Weapons[1]);
if(Weapons[0] == 35 && Weapons[1] == 16)
{
  new Random = random(2);
  if(Random == 0)
  {
    GivePlayerWeapon(playerid, 17, random(9998)+1);
  }
  if(Random == 1)
  {
    GivePlayerWeapon(playerid, 38, random(9998)+1);
  }
}
Sorry, forgot the parameters for GetPlayerWeaponData :P.
Reply


Messages In This Thread
Check player's weapons - by Marc_307 - 03.01.2010, 09:40
Re: Check player's weapons - by [HiC]TheKiller - 03.01.2010, 09:56
Re: Check player's weapons - by Marc_307 - 03.01.2010, 10:11
Re: Check player's weapons - by [HiC]TheKiller - 03.01.2010, 10:43

Forum Jump:


Users browsing this thread: 2 Guest(s)