30.10.2010, 08:47
Okay, i'm sorry and thank you! But here is what i have so far:
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
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;
}