Admin bot?
#1

Is there away I can make an admin bot?

So if there large ping it goes like

Admin %d kicked %d for bblbl (then admin %d is like a bot with a cool name?)
Reply
#2

Place it on the ping kicker
pawn Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(player1, playername, sizeof(playername));
format(string, sizeof(string), "BotNameHere has kicked %s - Ping Limit reached", playername);
SendClientMessageToAll(adminpink,string);
Reply
#3

Quote:
Originally Posted by SnG.Scot_MisCuDI
Посмотреть сообщение
Place it on the ping kicker
pawn Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(player1, playername, sizeof(playername));
format(string, sizeof(string), "BotNameHere has kicked %s - Ping Limit reached", playername);
SendClientMessageToAll(adminpink,string);
Thats how i have it too but for ease of changing the bots name you could use a define for it, like
pawn Код:
//at the top of your script
#define BotName "Your_Bot_Name"

//then just add this to his format/the rest of the ones you want with the bot name in it.
format(string, sizeof(string), "%s has kicked %s - Ping Limit reached", BotName, playername);
//only reason for it this way is to change your bot name on 1 line instead of a bunch
I used to have it like that but now i have it load from a file and can change it ingame
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)