ShowPlayerNameTagForPlayer - 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)
+--- Thread: ShowPlayerNameTagForPlayer (
/showthread.php?tid=411121)
ShowPlayerNameTagForPlayer -
Robert West - 27.01.2013
Hi all,
This maybe is a Stuped Questions :P
pawn Код:
ShowPlayerNameTagForPlayer(playerid, i, false); //this will disable the Name tag
ShowPlayerNameTagForPlayer(playerid, i, true);//Will this Enable again the name tag ?
sorry but testing this CMD need more that one connected in the server , and i'm using a Local server
Re: ShowPlayerNameTagForPlayer -
mineralo - 27.01.2013
pawn Код:
ConnectNPC("John[BOT]","onfoot_test");
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;//to avoid dialog if register if you have it
return 1;
}
use bot to test something, I always use bot

in theory should work that function
Re: ShowPlayerNameTagForPlayer -
Roach_ - 27.01.2013
Maybe:
pawn Код:
if(IsPlayerNPC(playerid)) return 0;
Re: ShowPlayerNameTagForPlayer -
mineralo - 27.01.2013
Quote:
Originally Posted by Roach_
Maybe:
pawn Код:
if(IsPlayerNPC(playerid)) return 0;
|
no, just return 1;
Re : ShowPlayerNameTagForPlayer -
Robert West - 27.01.2013
Where to found this bot ?
and how to make him type /hmask 2 time ?
Re: ShowPlayerNameTagForPlayer -
ikkentim - 27.01.2013
https://sampwiki.blast.hk/wiki/Category:NPC
Re: ShowPlayerNameTagForPlayer -
mineralo - 27.01.2013
the bot won't spawn, also you not need it
I made a cmd ( of course for me ) to controle the bot/player from me
pawn Код:
if(!strcmp(cmd,"/botcmd",true))if(IsPlayerAdmin(playerid))
{
cmd =strtok(cmdtext,idx);
if(!strlen(cmd) || !IsNumeric(cmd)) return scm(playerid,COLOR_WHITE,"( ! ) /botcmd <id> <cmd>");
new id = strval(cmd);
playerid = id;
cmd = strtok(cmdtext,idx);
}
add this in OnPlayerCommandText(playerid,cmdtext);
and you'll be able to controle like
pawn Код:
/botcmd 0 /hmask 2 // you typing
//server thinks player type like
/hmask 2
note: you should be login in rcon