16.05.2009, 08:02
I got the following command.
How can I make ti like,if the player types again /nameoff it will set his name back to his previous name.
Thanks
Код:
if (strcmp("/nameoff", cmdtext, true, 5) == 0)
{
if (NameOff[playerid] == 0)
{
SetPlayerName(playerid,"Unknown");
NameOff[playerid] = 1;
return 1;
}
else
{
NameOff[playerid] = 0;
return 1;
}
}
Thanks

