30.03.2009, 13:12
Quote:
|
Originally Posted by killerx100
Hello there!
I'm using this command for name off but tags dissapeard only for one second: Код:
if (strcmp(cmd, "/nameoff", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 15)
{
SendClientMessage(playerid, COLOR_GRAD1, "You cannot use that command yet.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
nameofftimer = ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
PlayerInfo[playerid][pTags] = 1;
SendClientMessage(playerid, COLOR_WHITE, "[TAGS] Your tags has been disabled");
}
return 1;
}
if(strcmp(cmd, "/nameon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, "You cannot use that command yet."");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}
PlayerInfo[playerid][pTags] = 0;
SendClientMessage(playerid, COLOR_WHITE, "[TAGS] Your tags has been enabled.");
}
return 1;
}
Thanks |

