SA-MP Forums Archive
how to check player out area - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to check player out area (/showthread.php?tid=318409)



how to check player out area - peterory - 15.02.2012

i want when a player out of area send a client too all
Some one out of area
how to make it
can some on tell me ? Thx


Re: how to check player out area - andrewgrob - 15.02.2012

public isPlayerInArea()
{
printf("Player %i left a checkpoint!",playerid);
SendClientMessageToAll(0xDEEE20FF, "Hello.");
return 1;
}

-------------------------------------------------

SendClientMessageToAll(0xDEEE20FF, "Hello."); --- i added that above . but you dont need that
-----------------------------------------------------------------------

just

public isPlayerInArea()
{
printf("Player %i left a checkpoint!",playerid);
return 1;
}


Re: how to check player out area - andrewgrob - 15.02.2012

maybe this

if (IsPlayerInCheckpoint(playerid))
{
SetPlayerHealth(playerid, 100.0);
}


Re: how to check player out area - peterory - 15.02.2012

not that mine
my mean is when player leave the area send a message


Re: how to check player out area - andrewgrob - 15.02.2012

have a look at this https://sampforum.blast.hk/showthread.php?tid=93294


Re: how to check player out area - peterory - 15.02.2012

Quote:
Originally Posted by andrewgrob
Посмотреть сообщение
thank you!