/name off is crap.
#1

Код:
	if (strcmp(cmd, "/name", true) ==0 )
	{
	if (AccountInfo[playerid][AdminLevel] > 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp))
	{
	SendClientMessage(playerid,WHITE, "[USAGE] /name off/on ");
	}
	else if(strcmp(tmp,"off",true) == 0)
	{
	for(new i=0;i<MAX_PLAYERS;i++) { ShowPlayerNameTagForPlayer(playerid,i,0); }
	SendClientMessage(playerid,WHITE,"Your name tags are hidden.");
	return 1;
	}
	else if(strcmp(tmp,"on",true) == 0)
	{
	for(new i=0;i<MAX_PLAYERS;i++) { ShowPlayerNameTagForPlayer(i,playerid,1); }
	SendClientMessage(playerid,WHITE,"Your name tags are viewable.");
	return 1;
	} else {
	SendClientMessage(playerid,WHITE,"Your are not a high enough rank.");
	}
	}
	return 1;
	}
Players see my name going away for a millisecond and then appearing again, wth is wrong with this?
Reply
#2

I didn't understand your Question mate.
Reply
#3

That indentation reminds me of Underworld, is it an edit off that? Godfather edits use an old way of showing nametags to people only near (before LimitGlobalChatRadius was available). The script itself works, although godfathers "morphinc.inc" interferes with it.
Reply
#4

Okay, again my problem: When you use /name off, the name tags disappear for a second and then appear again. But I dont want the name tags showing up again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)