Names RolePlay - 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: Names RolePlay (
/showthread.php?tid=157675)
Names RolePlay -
majestyk - 07.07.2010
Hello!
Can someone show me the filterscript that causes the players' names do not appear on the head and only appear if the player says his name?
Await response, please!
Respects,
majestyk
Re: Names RolePlay -
TouR - 07.07.2010
Paste this under OnGameModeInit: ShowNameTags(0);
You used wrong section of the forum
Re: Names RolePlay -
VitorMondim - 07.07.2010
Yes, but saying the name does not appear
Re: Names RolePlay -
Hiddos - 07.07.2010
pawn Code:
public OnPlayerConnect(playerid)
{
for(new i; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i,playerid,0);
}
return 1;
}
public OnPlayerText(playerid,text[])
{
for(new i; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i,playerid,1);
}
SetTimerEx("ResetNameTag",5000,0,"d",playerid);
return 1;
}
forward ResetNameTag(playerid);
public ResetNameTag(playerid)
{
for(new i; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i,playerid,0);
}
return 1;
}
Shows for 5 seconds, then hides it again.
Re: Names RolePlay -
majestyk - 07.07.2010
And there's no way to appear on forever?
Re: Names RolePlay -
Hiddos - 07.07.2010
Remove the timer and the ResetNameTag function then
Re: Names RolePlay -
VitorMondim - 07.07.2010
Good Job. I will test
Re: Names RolePlay -
VitorMondim - 07.07.2010
This does not work.
Re: Names RolePlay -
VitorMondim - 07.07.2010
"ShowNameTags (0);"
I must have this in OnGameModeInit?