29.06.2018, 18:18
PHP код:
new TempoPergunta, TimerPM[MAX_PLAYERS];
forward PerguntaPM(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK) //pergunta1a
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 380.5,2501.9004,16.5000))
ShowPlayerDialog(playerid, pergunta_1, DIALOG_STYLE_LIST, "Quem й(sгo) o(s) lider(es) do Batalhгo?", "GuiH\nGuiH e Leo\nK2\nK2 e GuiH\nK2 e Leo", "Responder", "");
TimerPM[playerid] = SetTimerEx("PerguntaPM", 1000, true, "i", playerid);
}
return 1;
}
public PerguntaPM(playerid);
{
TempoPergunta++;
if(TempoPergunta == 15)
{
KillTimer(TimerPM[playerid]);
Kick(playerid);
}
return 1;
}