/goto C-ordinate
#2

pawn Код:
COMMAND:tele(playerid, cmdtext[])
{
    new X, Y, Z, string[128];
    if(sscanf(cmdtext, "iii", X, Y, Z)) return SendClientMessage(playerid, -1, " ** Usage: /tele [x] [y] [z] ");
    SetPlayerPos(playerid, X, Y, Z);
    format(string, sizeof string, "You teled to: X:%i, Y:%i, Z:%i ", X, Y, Z);
    SendClientMessage(playerid, -1, string);
    return 1;
}
Should look like this, although this is a rough example, and im not sure if it gives any errors!
ZCMD & sscanf2 is needed for this
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: 1 Guest(s)