Quote:
Originally Posted by Mujib
Quote:
Originally Posted by Anthony_Brassi
if(strcmp(cmd, "/nametagsoff", true) == 0)
{
ShowNameTags(0);
}
& to turn on
if(strcmp(cmd, "/nametagson", true) == 0)
{
ShowNameTags(1);
}
btw, idk if this will work
|
pawn Код:
new nametags = 1; if(strcmp(cmd, "/nametags", true) == 0) { if(nametags == 0) { ShowNameTags(1); nametags = 1; SendClientMessage(playerid, 0xFFFF00AA, "Nametags are turned ON now!"); } if(nametags == 1) { ShowNameTags(0); nametags = 0; SendClientMessage(playerid, 0xFFFF00AA, "Nametags are turned OFF now!"); } }
This is a more advanced version, add it under "OnPlayerCommandText".
Greets,
Mujib
|
yeah, i just threw it together, didn't bother doing that