31.10.2010, 08:27
you're not doing anything with
try this:
pawn Код:
if(pInvisOn == 0)
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;
}