Help me pls xD
#1

How do i make this that poeple can only use it when they are near it

PHP код:
{
    if (
strcmp("/teleportme"cmdtexttrue10) == 0)
    {
        
SetPlayerPos(playerid396.7123,-3308.4155,7);
        return 
1;
    }
    return 
0;

Reply
#2

Use IsPlayerInRangeOfPoint

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 396.7123,-3308.4155,7.0))
    return SendClientMessage(playerid, -1, "You aren't near the teleport.");
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)