i got a little question
#9

Okay, i'm sorry and thank you! But here is what i have so far:
pawn Код:
//pinvis
    if(strcmp(cmdtext, "/pinvis", true) == 0)
    {
        if(pInvisOn == 0)
            {
            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(1)));
            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;
    }
When I type /pinvis to hide and again /pinvis to unhide, it changed my colour to black or another colour that's not right. Chatcolour
Reply


Messages In This Thread
i got a little question - by Andy_McKinley - 30.10.2010, 07:17
Re: i got a little question - by Retardedwolf - 30.10.2010, 07:59
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:01
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:04
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:08
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:17
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:17
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:29
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:47
Re: i got a little question - by Retardedwolf - 30.10.2010, 09:09

Forum Jump:


Users browsing this thread: 3 Guest(s)