IsPlayerInRangeOfPoint
#4

pawn Code:
if(strcmp(cmdtext,"/nrg",true)==0)
{
    if(DMArea[playerid] == 1) return ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX,"{FF0000}Error:","{00F6F6}Cannot teleport while at DM area","Exit","Cancel");
    {
        if(IsPlayerInRangeOfPoint(playerid,7.0,169.4746,-1765.3291,14.7578))
        {
            SendClientMessage(playerid,red,"Test");
        }
        else
        {
            PlayerInDm[playerid] = 0;   HOP[playerid] = 1;  DMArea[playerid] = 0;
            SetPlayerFacingAngle(playerid,70.9471);
            SetPlayerPos(playerid,991.0759,-1823.6770,19.0977);
            DestroyVehicle(veh[playerid]);
            new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
            veh[playerid] = CreateVehicle(522, 991.0759,-1823.6770,19.0977, 70.9471, -1, -1, -1);
            PutPlayerInVehicle(playerid, veh[playerid], 0);
            if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
            PutPlayerInVehicle(playerid,veh[playerid] ,0);
            SetPlayerInterior(playerid,0);
            GameTextForPlayer(playerid,"~g~~h~NRG Parkour",2000,1);
            return 1;
            }
            }
            }
Reply


Messages In This Thread
IsPlayerInRangeOfPoint - by CraZy_KiLLaH - 31.03.2011, 20:55
Re: IsPlayerInRangeOfPoint - by ronnie3148 - 31.03.2011, 21:29
Re: IsPlayerInRangeOfPoint - by CraZy_KiLLaH - 31.03.2011, 21:36
Re: IsPlayerInRangeOfPoint - by Tommy_Mandaz - 01.04.2011, 00:51

Forum Jump:


Users browsing this thread: 1 Guest(s)