Need a /goto command...
#5

Quote:
Originally Posted by Max_Coldheart
Посмотреть сообщение
pawn Код:
YCMD:goto(playerid, o[], help)
{
    #pragma unused help
    new pID;
    if(sscanf(o,"u", pID)) return SendClientMessage(playerid, -1,"Syntax error.Correct usage: /goto [PlayerID/Name]");
    if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1,"That player is not connected");
    new Float:x, Float:y, Float:z;
    GetPlayerPos(pID, x, y, z);
    SetPlayerPos(playerid, x+1, y+1, z);
    return 1;
}
Notice: this is using YCMD and sscanf2
You can't just assume people are using/have the ZCMD/YCMD/DCMD and sscanf includes ...
Reply


Messages In This Thread
Need a /goto command... - by Macros50 - 24.09.2011, 14:53
Re: Need a /goto command... - by Max_Coldheart - 24.09.2011, 14:59
Re: Need a /goto command... - by Kingunit - 24.09.2011, 14:59
Re: Need a /goto command... - by [MWR]Blood - 24.09.2011, 15:00
Re: Need a /goto command... - by grand.Theft.Otto - 24.09.2011, 15:59
Re: Need a /goto command... - by Macros50 - 24.09.2011, 16:08
Re: Need a /goto command... - by grand.Theft.Otto - 24.09.2011, 16:59
Re: Need a /goto command... - by Kaperstone - 24.09.2011, 17:02
Re: Need a /goto command... - by Max_Coldheart - 24.09.2011, 17:27
Re: Need a /goto command... - by Kingunit - 24.09.2011, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)