Little Help plz
#1

I tried to code a feature for Hydra wars such that, when we are flying below a certain Z co-ords it should kick us from hydra, but i am wondering how to do it, can anyone of u help me plz.
Reply
#2

Something like this
pawn Код:
//in some timer
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
if(GetPlayerVehicleID(playerid) == 525) //or w/e id of hydra is
{
  if(Pos[2] < 50)
  {
   Kick(playerid);
  }
}
Just a rough overveiw, not teh actual code.
Reply
#3

so i should repeat this stuff for every second?

and btw u are v helpful thanx
Reply
#4

Yeah, use SetTimerEx to set a timer for one second with a playerid param.
Reply


Forum Jump:


Users browsing this thread: