[Help]Need /goto help
#4

pawn Код:
#define isnull(%1)                        (!%1[0] || (%1[0] == '\1' && !%1[1]))

COMMAND:goto(playerid, params[])
{
    new
        id = strval(params),
        Float:x,
        Float:y,
        Float:z;
    if (PlayerInfo[playerid][Admin] <= 0 && PlayerInfo[playerid][Helper] <= 0) return SendClientMessage(playerid, COLOR_RED, "You must be Helper/Admin to use that command.");
    if (isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "[INFO]: /goto [id]");
    GetPlayerPos(id, x, y, z);
    SetPlayerPos(playerid, x + 1, y + 1, z);
    return 1;
}
I'd recommend using sscanf.
Reply


Messages In This Thread
[Help]Need /goto help - by Alex_Valde - 01.10.2010, 18:28
Re: [Help]Need /goto help - by Ash. - 01.10.2010, 18:30
Re: [Help]Need /goto help - by Alex_Valde - 01.10.2010, 18:40
Re: [Help]Need /goto help - by bigcomfycouch - 01.10.2010, 18:45
Re: [Help]Need /goto help - by Grim_ - 01.10.2010, 18:48
Re: [Help]Need /goto help - by bigcomfycouch - 01.10.2010, 18:51
Re: [Help]Need /goto help - by Alex_Valde - 01.10.2010, 18:54
Re: [Help]Need /goto help - by [Lsrcr]Rafa - 01.10.2010, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)