27.10.2013, 13:18
Well i can't know where errors are if you post me the whole code from a line to a line.. i will get from line 1..
anyway try this.. and explain me why you are defining a variabile like this
instead of
anyway try this.. and explain me why you are defining a variabile like this
pawn Код:
new Something[2] = "Hi";
Function(Something);
pawn Код:
Function("Hi");
pawn Код:
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)
{
BanPlayer(i,"Jetpack","Anti-cheat");
}
new Float:armor;
GetPlayerArmour(i,armor);
if(armor >= 96)
{
BanPlayer(i,"Armour Hack (Exceeded over 96f)","Anti-cheat");
}
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;
}
pawn Код:
if(killerid != INVALID_PLAYER_ID)
{
if(!PlayerShotPlayer[killerid][playerid])
{
BanPlayer(playerid,"Fake Killing","Anti-cheat");
}
}