Admin bot?
#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


Messages In This Thread
Admin bot? - by cod5devious - 29.05.2012, 01:19
Re: Admin bot? - by SnG.Scot_MisCuDI - 29.05.2012, 01:27
Re: Admin bot? - by nickdodd25 - 29.05.2012, 02:36

Forum Jump:


Users browsing this thread: 1 Guest(s)