/name off is crap. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /name off is crap. (
/showthread.php?tid=97599)
/name off is crap. -
Striker_Moe - 15.09.2009
Код:
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?
Re: /name off is crap. -
eXchainZ-FoReVeR - 16.09.2009
I didn't understand your Question mate.
Re: /name off is crap. -
Chaprnks - 16.09.2009
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.
Re: /name off is crap. -
Striker_Moe - 16.09.2009
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.