30.03.2009, 13:11
Hello there!
I'm using this command for name off but tags dissapeard only for one second:
Whats the problem?
Thanks
I'm using this command for name off but tags dissapeard only for one second:
pawn Код:
if (strcmp(cmd, "/nameoff", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not able to use it.");
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 are not able to use it.");
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