Need Help
#1

How to make when people have sawnoff shotgun will always SetPlayerHealth(playerid, 0);

Thk For All ans
Reply
#2

I think this will work..
Put this in OnPlayerUpdate
Quote:

if(GetPlayerWeapon(playerid) == 26) {
SetPlayerHealth(playerid,0);
return 0;
}

Reply
#3

this would be better

under like on game mode init or on player spawn
Код:
new weap, ammo;
  for(new i; i < MAX_PLAYERS; i++)
  {
    if(!IsPlayerConnected(i)) continue;
    GetPlayerWeaponData(i, 7, weap, ammo);
    if(weap == 26 && ammo != 0)
    {
      SetPlayerHealth(playerid, 0);
      continue;
    }
  }
  return 1;
}
Reply
#4

Thank it can use ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)