16.07.2011, 20:25
pawn Код:
//********************** Inicio do GM **********************
new NoEvento, TAzul[MAX_PLAYERS], TVermelho[MAX_PLAYERS];
//********************* OnPlayerCommandText ****************
if(strcmp(cmdtext, "/irevento", true) == 0)
{
//Aqui todas as sintaxes do seu sistema de eventos, tipo: teleport armas etc.
NoEvento += 1;
if(NoEvento > 10)
{
TAzul[playerid] = 1;
TVermelho[playerid] = 0;
SendClientMessage(playerid, 0x1E90FF99, "Vocк estб no time azul");
return 1;
}
else if(NoEvento < 10)
{
TVermelho[playerid] = 1;
TAzul[playerid] = 0;
SendClientMessage(playerid, 0xE3191999, "Vocк estб no time vermelho");
return 1;
}
return 1;
}