Scripting problems with a game mode
#2

Use IsPlayerInRangeOfPoint.
pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 3, building1x, building1y, building1z))
    {
        //Teleport to building 1
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3, building2x, building2y, building2z))
    {
        //Teleport to building 2
    }
    return 1;
}
Reply


Messages In This Thread
Scripting problems with a game mode - by ifly4life - 03.02.2011, 02:03
Re: Scripting problems with a game mode - by Krx17 - 03.02.2011, 02:05
Re: Scripting problems with a game mode - by [L3th4l] - 03.02.2011, 02:19

Forum Jump:


Users browsing this thread: 1 Guest(s)