if (strcmp(cmd, "/nametag", true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
if(HideNameTag == 0)
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
for(new x = MAX_PLAYERS; x <= MAX_PLAYERS; x--)
{
ShowPlayerNameTagForPlayer(x, i, false);
}
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
HideNameTag = 1;
}
else
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
for(new x = MAX_PLAYERS; x <= MAX_PLAYERS; x--)
{
ShowPlayerNameTagForPlayer(x, i, true);
}
}
HideNameTag = 0;
}
}
else return SendClientMessage(playerid,COLOR_GRAD2,"Your not Ballu Miaa who can do anything he want's! Get the fuck off Dude!.");
return 1;
}
0 - 10 - HIdes 10's Nametag for 0 1 - 9 - HIdes 9's Nametag for 1 2 - 8 - HIdes 8's Nametag for 2 3 - 7 - HIdes 7's Nametag for 3 4 - 6 - HIdes 6's Nametag for 4 5 - 5 - HIdes 5's Nametag for 5 6 - 4 - HIdes 4's Nametag for 6 7 - 3 - HIdes 3's Nametag for 7 8 - 2 - HIdes 2's Nametag for 8 9 - 1 - HIdes 1's Nametag for 9 10 - 0 - HIdes 0's Nametag for 10
if (strcmp(cmd, "/nametag", true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
if(HideNameTag == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(IsPlayerConnected(i)&&IsPlayerConnected(x))
{
ShowPlayerNameTagForPlayer(x, i, false);
}
}
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
HideNameTag = 1;
}
else
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(IsPlayerConnected(i)&&IsPlayerConnected(x))
{
ShowPlayerNameTagForPlayer(x, i, true);
}
}
}
HideNameTag = 0;
}
}
else return SendClientMessage(playerid,COLOR_GRAD2,"Your not Ballu Miaa who can do anything he want's! Get the fuck off Dude!.");
return 1;
}
if (strcmp(cmd, "/nametag", true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
if(HideNameTag == 0)
{
for(new x; x<MAX_PLAYERS; x++)
{
if(!IsPlayerConnected(x)) continue;
for(new i; i<MAX_PLAYERS; i++)
{
if(i == x || !IsPlayerConnected(x)) continue;
ShowPlayerNameTagForPlayer(i, x, 0);
}
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
HideNameTag = 1;
}
else
{
for(new x; x<MAX_PLAYERS; x++)
{
if(!IsPlayerConnected(x)) continue;
for(new i; i<MAX_PLAYERS; i++)
{
if(i == x || !IsPlayerConnected(x)) continue;
ShowPlayerNameTagForPlayer(i, x, 1);
}
}
HideNameTag = 0;
}
}
else return SendClientMessage(playerid,COLOR_GRAD2,"Your not Ballu Miaa who can do anything he want's! Get the fuck off Dude!.");
return 1;
}
pawn Код:
|