Coord tele
#6

pawn Код:
CMD:coordteleport(playerid, params[])
{
    new Float:Pos[3];
    if(sscanf(params, "a<f>[3]", Pos)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /coordteleport (XPos) (Ypos) (ZPos)");

    new vID = GetPlayerVehicleID(playerid);
    if(vID) SetVehiclePos(vID, Pos[0], Pos[1], Pos[2]);
    else SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
   
    new string[128];
    format(string, sizeof string, "You have been teleported to coordinates %.4f, %.4f, %.4f.", Pos[0], Pos[1], Pos[2]);
    return SendClientMessage(playerid, COLOR_WHITE, string);
}
Reply


Messages In This Thread
Coord tele - by Ananisiki - 05.05.2014, 17:38
Re: Coord tele - by awsomedude - 05.05.2014, 18:05
Re: Coord tele - by Ananisiki - 05.05.2014, 23:11
Re: Coord tele - by awsomedude - 05.05.2014, 23:14
Re: Coord tele - by Ananisiki - 05.05.2014, 23:19
Re: Coord tele - by Jefff - 06.05.2014, 01:02
Re: Coord tele - by SickAttack - 06.05.2014, 03:07
Re: Coord tele - by Ananisiki - 06.05.2014, 23:32
Re: Coord tele - by Nathan_Taylor - 07.05.2014, 00:08
Re: Coord tele - by Aerotactics - 07.05.2014, 00:09

Forum Jump:


Users browsing this thread: 2 Guest(s)