27.10.2013, 13:10
Lines from 508 to 573
And this from 1136 to 1144
Can you help me ?
PHP код:
function OnServerUpdate()
{
foreach(Player, i)
{
if(GetPlayerMoney(i) >= 1) return ResetPlayerMoney(i);
SetPlayerScore(i,pInfo[i][pXP]);
UpdateXPTextdraw(i);
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
new Admin[24] = "Anti-cheat";
new reason3[128] = "Jetpack";
BanPlayer(i,reason3,Admin);
}
new Float:armor;
GetPlayerArmour(i,armor);
if(armor >= 96)
{
new Admin[24] = "Anti-cheat";
new reason3[128] = "Armour Hack (Exceeded over 96f)";
BanPlayer(i,reason3,Admin);
}
if(team[i] == TEAM_ZOMBIE)
{
switch(GetPlayerWeapon(i))
{
case 2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46:
{
ResetPlayerWeapons(i);
GivePlayerWeapon(i,9,1);
}
}
}
if(team[i] == TEAM_ZOMBIE)
{
if(armor > 0.0)
{
SetPlayerArmour(i,0.0);
}
}
if(IsPlayerInAnyVehicle(i))
{
if(pInfo[i][pAdminLevel] == 0)
{
Kick(i);
}
}
if(pInfo[i][pVipFlash] == 1)
{
switch(random(2))
{
case 0: SetPlayerColor(i,COLOR_YELLOW);
case 1: SetPlayerColor(i,COLOR_RED);
}
}
DoctorShield();
UpdateAliveInfo();
}
return 1;
}
PHP код:
if(killerid != INVALID_PLAYER_ID)
{
if(!PlayerShotPlayer[killerid][playerid])
{
new Admin[24] = "Anti-cheat";
new reason3[128] = "Fake Killing";
BanPlayer(playerid,reason3,Admin);
}
}