Cmd bugged in-game (1 thingy only)
#4

you're not doing anything with
pawn Код:
if(pInvisOn == 0)
try this:

pawn Код:
//pinvis
    if(strcmp(cmdtext, "/pinvis", true) == 0)
    {
        if(pInvisOn == 0)
        {
            if(PlayerKills[playerid] >= 10)
            {
                for( new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
                for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, false);
                SendClientMessage(playerid, COLOR_YELLOW, "You have dissapeared from the radar and your nametag has been removed.");
                pInvisOn = 1;

            }
            else
            {
                for( new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid)));
                for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, true);
                SendClientMessage(playerid, COLOR_YELLOW, "Your blip is now back on the radar and your name tag has appeared back.");
                pInvisOn = 0;
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Cmd bugged in-game (1 thingy only) - by Andy_McKinley - 31.10.2010, 08:19
Re: Cmd bugged in-game (1 thingy only) - by iggy1 - 31.10.2010, 08:26
Re: Cmd bugged in-game (1 thingy only) - by Double-O-Seven - 31.10.2010, 08:26
Re: Cmd bugged in-game (1 thingy only) - by Bessensap - 31.10.2010, 08:27

Forum Jump:


Users browsing this thread: 1 Guest(s)