Anti weapon hack help
#2

Here you go:
On the UP of the GM/FS:
Code:
#define YELLOW 0xFFFF00FF
at OnPlayerSpawn
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;
}
}
}
}
}
Reply


Messages In This Thread
Anti weapon hack help - by Perker12345 - 02.02.2010, 08:04
Re: Anti weapon hack help - by [WSM]Deadly_Evil - 02.02.2010, 08:30
Re: Anti weapon hack help - by mansonh - 02.02.2010, 08:30

Forum Jump:


Users browsing this thread: 1 Guest(s)