20.01.2016, 11:55
PHP код:
new PlayerConnect;
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
//------- Perguntas ------//
if(IsPlayerInRangeOfPoint(playerid, 1.0, 377.0514, 2502.6099, 16.4844))
{
if(PlayerConnect >= 6) return SendClientMessage(playerid, -1, "Ja atingiu o Limite de Players nesse Evento");
if(PlayerConnect <= 5){
//Funзхes do Evento
PlayerConnect =+ 1;
}
}
}
return 1;
}
CMD:reiniciando(playerid){
PlayerConnect = 0;
SendClientMessageToAll(-1, "Evento Reiniciado, pode ir la busca sua recompenзa");
return 1;
}