[Ajuda] Derby
#2

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;
}
Espero ter ajudado ^^
Reply


Messages In This Thread
[Ajuda] Derby - by diretor7 - 27.06.2011, 01:15
Re: [Ajuda] Derby - by Ricop522 - 27.06.2011, 01:38
Re: [Ajuda] Derby - by diretor7 - 27.06.2011, 05:38
Re: [Ajuda] Derby - by Chefгo - 27.06.2011, 06:00
Re: [Ajuda] Derby - by The Knight - 27.06.2011, 10:50
Re: [Ajuda] Derby - by diretor7 - 27.06.2011, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)