30.08.2011, 21:25
new bool:Nick;
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/nickoff", cmdtext, true) == 0)
{
if(!Nick)
{
Nick = true;
ShowNameTags( 1 );
GameTextForPlayer(playerid, "~W~Nicks ativados ~g~ON", 5000, 5);
}
else
{
Nick = false;
ShowNameTags( 0 );
GameTextForPlayer(playerid, "~W~Nicks Desativos ~R~off", 5000, 5);
}
return 1;
}
return 0;
}