/goto only goes to id 0
#5

ok then... but he still complicated it...
Correction:
pawn Код:
COMMAND:goto(playerid, params[])
{
    if(GetPlayerAdmin(playerid) < 1) return SendBlockedAdminCommand(playerid, 1);
    if (sscanf(params, "i",toid)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /goto PLAYERID");
    if (toid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "[ERROR]:That player is not connected.");
    new Float:x, Float:y, Float:z;
    GetPlayerPos(toid, x, y, z);
    SetPlayerPos(playerid, x+2, y+3, z); // WOW +2 and +3!!!!... -_-"
    SetPlayerInterior(playerid, GetPlayerInterior(toid));
    SetPlayerVirtualWorld(playerid,GetPlayerVitrualWorld(toid));
    new str[128],pn[MAX_PLAYER_NAME];
    GetPlayerName(toid, pn, MAX_PLAYER_NAME);
    format(str, sizeof (str), "Teleported to %s(%d).",pn, toid);
    SendClientMessage(playerid, COLOR_YELLOW, str);
    return 1;
}
EDIT: anyway... if you want to keep your code
replace this:
pawn Код:
if (sscanf(params, "ifff", toid, ox, oy, oz))
Reply


Messages In This Thread
/goto only goes to id 0 - by Haydz - 14.12.2010, 03:00
Re: /goto only goes to id 0 - by JamesC - 14.12.2010, 03:07
Re: /goto only goes to id 0 - by XePloiT - 14.12.2010, 03:09
Re: /goto only goes to id 0 - by JamesC - 14.12.2010, 03:12
Re: /goto only goes to id 0 - by XePloiT - 14.12.2010, 03:21
Re: /goto only goes to id 0 - by Haydz - 14.12.2010, 03:22
Re: /goto only goes to id 0 - by XePloiT - 14.12.2010, 03:27
Re: /goto only goes to id 0 - by Haydz - 14.12.2010, 03:41
Re: /goto only goes to id 0 - by XePloiT - 14.12.2010, 03:42

Forum Jump:


Users browsing this thread: 3 Guest(s)