Coord tele
#1

pawn Код:
CMD:coordteleport(playerid, params[])
{
    new x, y, z;
    if(sscanf(params, "iii", x, y, z)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /coordteleport(XPos) (Ypos) (ZPos)");
    SetPlayerPos(playerid, x, y, z);
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
    }
    new string[128];
    format(string, sizeof string, "You have been teleported to coordinates %d, %d, %d.", x, y, z);
    SendClientMessage(playerid, COLOR_WHITE, string);
    return 1;
}
this no work when i type coordteleport 0 0 10 then i move to blueberry and if in vehicle the vehicle move too but i get ejected
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: 4 Guest(s)