Checking if player has weapon, using an array or another method...
#6

pawn Код:
switch (GetPlayerWeapon(i))
{
  case 8, 9, 16, 17, 21, 35, 36, 47, 38, 42 :
    //do something here
  default :
    //do something else
}
Far better than creating an array and searching in it with a loop...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)