[Ajuda] cmds de admins, pegando players
#1

tem alguns cmds de admin que tao pegando somente para quem nгo esta setado como admin...porйm eu tenho a linha especifica para admin - vip nos cmds.. porque esta dando isso? codigo abaixo de um dos cmds que so pega para player e quando um admin vai usar fala que nгo e admin ou vip!

pawn Код:
CMD:espiar(playerid, params[]) {
    if(ContaPlayer[playerid][Vip] == 0 && ContaPlayer[playerid][Admin] > 0)
        return Msg(playerid, Cinza, "Vocк nгo й vip ou admin");
    if(GetPVarInt(playerid, "espiando") == 1) {
        SetPVarInt(GetPVarInt(playerid, "playerTV"), "playerTV", 999);
        SetPVarInt(playerid, "playerTV", 999);
        SetPVarInt(playerid, "espiando", 0);
        TogglePlayerSpectating(playerid, 0);
        OnPlayerSpawn(playerid);
        return 1;
    }
    if(sscanf(params, "u", ID))
        return Msg(playerid, Cinza, "Use /espiar [id/nome]");
   
    if(!IsPlayerInAnyVehicle(ID)) {
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid, ID);
        SetPVarInt(ID, "playerTV", playerid);
        SetPVarInt(playerid, "playerTV", ID);
        SetPVarInt(playerid, "espiando", 1);
    }
    else {
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectateVehicle(playerid, GetPlayerVehicleID(ID));
        SetPVarInt(playerid, "playerTV", ID);
        SetPVarInt(ID, "playerTV", playerid);
        SetPVarInt(playerid, "espiando", 1);
    }
    return 1;
}
Reply


Messages In This Thread
cmds de admins, pegando players - by best95 - 02.09.2014, 13:57
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by GM_KoDi - 02.09.2014, 14:27
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by best95 - 02.09.2014, 14:35
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by Spectral - 02.09.2014, 14:36
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by GM_KoDi - 02.09.2014, 14:37
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by Spectral - 02.09.2014, 14:41
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by ViniBorn - 02.09.2014, 15:22
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by GetCode - 02.09.2014, 15:26
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by Spectral - 02.09.2014, 15:42
Re: CMDS DE ADMINS,PEGANDO PARA PLAYERS! - by best95 - 02.09.2014, 15:57

Forum Jump:


Users browsing this thread: 2 Guest(s)