/goto C-ordinate
#6

Quote:
Originally Posted by Karl1195
Посмотреть сообщение
Код:
CMD:goto(playerid, params[])
{
    new
        string[128],
        Float:Pos[3]
    ;
    if(sscanf(params, "fff", Pos[0], Pos[1], Pos[2]))
        return SendClientMessage(playerid, -1, "/goto[positionX] [positionY] [positionZ]");
    SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    format(string, sizeof(string), "You have set yourself to position: %f %f %f.", Pos[0], Pos[1], Pos[2]);
    SendClientMessage(playerid, -1, string);
    return 1;
}
So i should just put it like this in the script and add the includes?
Yes. Sscanf2 Zcmd.
Reply


Messages In This Thread
/goto C-ordinate - by Karl1195 - 05.07.2011, 08:50
Re: /goto C-ordinate - by Wesley221 - 05.07.2011, 09:03
Re: /goto C-ordinate - by Karl1195 - 05.07.2011, 09:26
Re: /goto C-ordinate - by HyperZ - 05.07.2011, 10:53
Re: /goto C-ordinate - by Karl1195 - 05.07.2011, 10:55
Re: /goto C-ordinate - by HyperZ - 05.07.2011, 10:58
Re: /goto C-ordinate - by Karl1195 - 05.07.2011, 11:01
Re: /goto C-ordinate - by HyperZ - 05.07.2011, 11:03

Forum Jump:


Users browsing this thread: 2 Guest(s)