29.01.2013, 10:32
umm like this
correct me if i am wrong :d plz plz
correct me if i am wrong :d plz plz
pawn Код:
forward AntiCheat(playerid);
public AntiCheat(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && !IsPlayerVip(playerid == 3))
{
if(HackTest == 1)
{
SetTimerEx("BanHacker", 5000, false, "d", playerid);
new string[128];
format(string, sizeof(string), "Admin RDX banned %s due to \"Jetpack Hacks.\".", Name);
SendClientMessageToAll(COLOR_RED, string);
GameTextForPlayer(playerid, "~r~Banned", 10000, 2);
SendClientMessage(playerid, COLOR_RED, "You are BANNED for jetpack hacks | Banned By: Admin RDX (NOTE: You can make a unban appeal on our website.) (NOTE: if you are a V.I.P. You will be unbanned A.S.A.P.");
BanEx(playerid, "Hacking --> Jetpack.");
}
}
if(GetPlayerWeapon(playerid) == 35)
{
if(HackTest == 1)
{
SetTimerEx("BanHacker", 5000, false, "d", playerid);
new string[128];
format(string, sizeof(string), "Admin RDX banned %s due to \"Weapon hacks.\".", Name);
SendClientMessageToAll(COLOR_RED, string);
GameTextForPlayer(playerid, "~r~Banned", 10000, 2);
SendClientMessage(playerid, COLOR_RED, "You are BANNED for weapon hacks (RPG) | Banned By: Admin RDX (NOTE: You can make a unban appeal on our website.) (NOTE: If you are a V.I.P. You will be unbanned A.S.A.P.");
BanEx(playerid, "Hacking --> Weapons --> RPG");
}
}
if(GetPlayerWeapon(playerid) == 36)
{
if(HackTest == 1)
{
SetTimerEx("BanHacker", 5000, false, "d", playerid);
new string[128];
format(string, sizeof(string), "Admin RDX banned %s due to \"Weapon hacks.\".", Name);
SendClientMessageToAll(COLOR_RED, string);
GameTextForPlayer(playerid, "~r~Banned", 10000, 2);
SendClientMessage(playerid, COLOR_RED, "You are BANNED for weapon hacks (Missile Launcher) | Banned By: Admin RDX (NOTE: You can make a unban appeal on our website.) (NOTE: If you are a V.I.P. You will be unbanned A.S.A.P.");
BanEx(playerid, "Hacking --> Weapons --> Missile Launcher");
}
}
if(GetPlayerWeapon(playerid) == 38)
{
if(HackTest == 1)
{
SetTimerEx("BanHacker", 5000, false, "d", playerid);
new string[128];
format(string, sizeof(string), "Admin RDX banned %s due to \"Weapon hacks.\".", Name);
SendClientMessageToAll(COLOR_RED, string);
GameTextForPlayer(playerid, "~r~Banned", 10000, 2);
SendClientMessage(playerid, COLOR_RED, "You are BANNED for weapon hacks (MINI Gun) | Banned By: Admin RDX (NOTE: You can make a unban appeal on our website.) (NOTE: If you are a V.I.P. You will be unbanned A.S.A.P.");
BanEx(playerid, "Hacking --> Weapons --> MINI Gun");
}
}
return 1;
}