02.02.2010, 08:30
Here you go:
On the UP of the GM/FS:
at OnPlayerSpawn
On the UP of the GM/FS:
Code:
#define YELLOW 0xFFFF00FF
Code:
new string[256]; new player[MAX_PLAYER_NAME]; GetPlayerName(playerid, player, sizeof(player)); if(reason == 35) { Kick (killerid); format(string, sizeof(string), "Server has kicked %s for Hacking(reason: Rocket Launcher)", player); SendClientMessageToAll(YELLOW, string); } else { if(reason == 36) { Kick(killerid); format(string, sizeof(string), "Server has kicked %s for Hacking (reason: HS Rocket Launcher)", player); SendClientMessageToAll(YELLOW, string); } else { if(reason == 37) { Kick(killerid); format(string, sizeof(string), "Server has kicked %s for Hacking (reason: Flamethrower)", player); SendClientMessageToAll(YELLOW, string); } else { if(reason == 38) { Kick(killerid); format(string, sizeof(string), "Server has kicked %s for Hacking(reason: Minigun)", player); SendClientMessageToAll(YELLOW, string); } else { if(IsPlayerAdmin(playerid)) return; } } } } }