need help for pirateship for == on player update ===
#1

help for pirateship
onplayerupdate
and if player leave pirateship it stop giving money
can anyone
Reply
#2

Maybe OnPlayerUpdate isn't the best place to that many area checks for all the players. A repeating timer of sorts may be more appropriate but that is entirely up to you. You just need to know if the player is in a certain area? So retrieve their position and compare it to certain coordinates that designate the area of the ship.

pawn Код:
new
    Float:x,
    Float:y,
    Float:z;
   
GetPlayerPos(playerid,x,y,z);
if((x > MinimumX && x < MaximumX) && (y > MinimumY && y < MaximumY))
{
    //They are inside the area
}
Reply
#3

tthanx soo much dude
actually friend the problem is when we leave pirateship in lv it remain giving money and stops at a longer distance like near caliguala casino : () tthis thing giving me problem and i cannt do what i want :C
and i am still unable to make it better
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)