SA-MP Forums Archive
Admin bot? - 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: Admin bot? (/showthread.php?tid=346545)



Admin bot? - cod5devious - 29.05.2012

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?)


Re: Admin bot? - SnG.Scot_MisCuDI - 29.05.2012

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);



Re: Admin bot? - nickdodd25 - 29.05.2012

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