16.05.2009, 19:19
I got a problem.
This just won't work !!!
The nametag dissapears like for,1 millisecond.
I tried everything,putting both commands just in one,changing some things but still the same problem.
Please,this command is a very important one for my RPG mode.
If you have time to help me,I would be grateful.
Regards - FreeSoul
Quote:
if (strcmp("/nameoff", cmdtext, true, 7) == 0) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == { if (NameOff[playerid] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { ShowPlayerNameTagForPlayer(i, playerid, 0); } } SendClientMessage(playerid,COLOR_GREY,"Nobody knows your real identity now!"); NameOff[playerid] = 1; return 1; } } } if (strcmp("/nameon", cmdtext, true, 6) == 0) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == { if (NameOff[playerid] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { ShowPlayerNameTagForPlayer(i, playerid, 1); } } NameOff[playerid] = 0; SendClientMessage(playerid,COLOR_GREY,"You now have your real identity!"); return 1; } } } |
The nametag dissapears like for,1 millisecond.
I tried everything,putting both commands just in one,changing some things but still the same problem.
Please,this command is a very important one for my RPG mode.
If you have time to help me,I would be grateful.
Regards - FreeSoul