27.01.2013, 20:14
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
add this in OnPlayerCommandText(playerid,cmdtext);
and you'll be able to controle like
note: you should be login in rcon
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);
}
and you'll be able to controle like
pawn Код:
/botcmd 0 /hmask 2 // you typing
//server thinks player type like
/hmask 2

