27.02.2014, 01:32
Hello guys
This will make my SERVER Lag ?
Thank for your Reply's +REP1
This will make my SERVER Lag ?
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
//--------------------------------------------
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SetPlayerArmedWeapon(playerid, 0);
}
//--------------------------------------------
if(PlayerInfo[playerid][God] == 0 && mini[playerid] == 0 )
{
new Float:pHealth;
GetPlayerHealth(playerid, pHealth);
if(pHealth >= 99)
{
Kick(playerid);
}
new Float:pArmour;
GetPlayerArmour(playerid, pArmour);
if(pArmour >= 99)
{
Kick(playerid);
}
}
//--------------------------------------------
new weap = GetPlayerWeapon(playerid);
if(mini[playerid] == 0)
{
if(weap == 36)
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX, "Server...", "{FFFFFF}Kamu telah di{48A4FF}Kick {FFFFFF}dari server\nAlasan: Weapon hack!", "Ok", "");
return 1;
}
if(weap == 35)
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX, "Server...", "{FFFFFF}Kamu telah di{48A4FF}Kick {FFFFFF}dari server\nAlasan: Weapon hack!", "Ok", "");
SetTimerEx("KickPlayer", 1000, 0, "d", playerid);
return 1;
}
if(weap == 38)
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX, "Server...", "{FFFFFF}Kamu telah di{48A4FF}Kick {FFFFFF}dari server\nAlasan: Weapon hack!", "", "Ok");
SetTimerEx("KickPlayer", 1000, 0, "d", playerid);
return 1;
}
}
return 1;
}