ShowPlayerNameTagForPlayer
#1

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
Reply
#2

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
Reply
#3

Maybe:
pawn Код:
if(IsPlayerNPC(playerid)) return 0;
Reply
#4

Quote:
Originally Posted by Roach_
Посмотреть сообщение
Maybe:
pawn Код:
if(IsPlayerNPC(playerid)) return 0;
no, just return 1;
Reply
#5

Where to found this bot ?
and how to make him type /hmask 2 time ?
Reply
#6

https://sampwiki.blast.hk/wiki/Category:NPC
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)