27.06.2011, 01:38
pawn Код:
new derbyevento;
if(strcmp(cmd, "/entrarderby", true) == 0)
{
if(IsPlayerConnected(playerid)) {
if(derbyiniciado[playerid] == 0) {
SendClientMessage(playerid, COLOR_GREY,"Nгo estб tendo evento de Derby!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "ATENЗГO! %s entrou no evento de Derby!",sendername);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
derbyevento++;
if(derbyevento == 1) PutPlayerInVehicle(playerid, derby1, 0);
if(derbyevento == 2) PutPlayerInVehicle(playerid, derby2, 0);
if(derbyevento == 3) PutPlayerInVehicle(playerid, derby3, 0);
if(derbyevento == 4) PutPlayerInVehicle(playerid, derby4, 0);
if(derbyevento == 5) PutPlayerInVehicle(playerid, derby4, 0);
if(derbyevento == 6) PutPlayerInVehicle(playerid, derby5, 0);
if(derbyevento == 7) PutPlayerInVehicle(playerid, derby6, 0);
if(derbyevento == 8) PutPlayerInVehicle(playerid, derby7, 0);
if(derbyevento == 9) PutPlayerInVehicle(playerid, derby8, 0);
//e assim por diante
return 1;
}
return 1;
}