goto cordinate
#5

Like this?
pawn Код:
CMD:gotocoord(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        new Float: pos[3], int;
        if(sscanf(params, "fffd", pos[0], pos[1], pos[2], int)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /gotocoord [x coordinate] [y coordinate] [z coordinate] [interior]");

        SendClientMessageEx(playerid, COLOR_GRAD2, "You have been teleported to the coordinates specified.");
        SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
        SetPlayerInterior(playerid, int);
    }
    return 1;
}
Reply


Messages In This Thread
goto cordinate - by Admin22 - 19.08.2013, 14:20
Re: goto cordinate - by AfikAtashga - 19.08.2013, 14:28
Re: goto cordinate - by Admin22 - 19.08.2013, 14:31
Re: goto cordinate - by Vanter - 19.08.2013, 14:52
Re: goto cordinate - by Max5 - 19.08.2013, 21:10

Forum Jump:


Users browsing this thread: 2 Guest(s)