whats wrong with this automatic gate?
#2

pawn Код:
//top of script after includes/defines etc.

IsACop(playerid)
{
  if (GetPlayerSkin(playerid) >= 280 && GetPlayerSkin(playerid) <= 286)
    {
       return 1;
    }
  else if (GetPlayerSkin(playerid) == 288)
    {
       return 1;
    }
  return 0;
}

//change

if(GS >= 281 && GS <= 280 && GS <= 282 && GS <= 283 && GS <= 288 && GS <= 284 && GS <= 285 && GS <= 286)

//to

if (IsACop(playerid))
PlayerToPoint should only be needed to check if near gate.
Reply


Messages In This Thread
whats wrong with this automatic gate? - by gtalover12 - 09.02.2009, 12:01
Re: whats wrong with this automatic gate? - by Auto-Sized - 09.02.2009, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)