30.08.2012, 07:41
Im confused with making a /tagsoff command and cant find one anywhere, it just basicly hides your nametag and sets your minimap radar to invisible if that helps..
CMD:tagson(playerid,params[]) { for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(playerid, i, 1); } SetPlayerColor(playerid, 0xffffffff); SendClientMessage(playerid, -1, "Everyone can see you!"); return 1; } CMD:tagsoff(playerid,params[]) { for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(playerid, i, 0); } SetPlayerColor(playerid, 0xffffff00); SendClientMessage(playerid, -1, "No-one can see you!"); return 1; }
CMD:tagsoff(playerid, params[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
SetPlayerColor(playerid, 0x00FF00AA);
}
return 1;
}
CMD:tagson(playerid, params[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
SetPlayerColor(playerid, 0xFFFFFFFF);
}
return 1;
}
pawn Код:
|