27.02.2014, 12:41
and change to this
and now SetTimerEx("KickPlayer", 1000, 0, "d", playerid); is called only one time
pawn Код:
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)
{
mini[playerid] = 1;
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)
{
mini[playerid] = 1;
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;
}
}