SA-MP Forums Archive
/goto, /gethere problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /goto, /gethere problem (/showthread.php?tid=271989)



/goto, /gethere problem - Rafa - 26.07.2011

ok guys i ahve this code:
pawn Code:
CMD:goto(playerid, params[])
{
    if(IsPlayerAdmin2[playerid] >=1)
    {
        new targetid, Float:x, Float:y, Float:z;
        if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /gethere [id]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "That player is not connected");
        GetPlayerPos(targetid, x, y, z);
        SetPlayerPos(playerid, x, y+0.5, z+0.5);
        return 1;
    }
    return 1;
}
CMD:gethere(playerid, params[])
{
    if(IsPlayerAdmin2[playerid] >= 1)
    {
        new targetid, Float:x, Float:y, Float:z;
        if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /gethere [id]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "That player is not connected");
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(targetid, x, y+0.5, z+0.5);
        return 1;
    }
    return 1;
}
I can use theese commands but the other player cant use ( maybe cause he is ID 0 )
what is the problem.. ?


Re: /goto, /gethere problem - PrawkC - 26.07.2011

Is there other player an admin?


Re: /goto, /gethere problem - Rafa - 26.07.2011

yeah we was 2 admins level 2
but should work correct idk why this wierd problem :/


Re: /goto, /gethere problem - iPLEOMAX - 26.07.2011

Show us "IsPlayerAdmin2[playerid]"


Re: /goto, /gethere problem - Rafa - 26.07.2011

fixed sorry ! :/