/goto, /gethere problem
#1

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.. ?
Reply
#2

Is there other player an admin?
Reply
#3

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

Show us "IsPlayerAdmin2[playerid]"
Reply
#5

fixed sorry ! :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)