[Ajuda] Troca de include
#4

pawn Код:
YCMD:tunar(playerid, params[], help)
{
    #pragma unused params
    if (help)
        return SendClientMessage(playerid, 0xFF0000AA, "Tuna um carro e.e.");
    if(!IsPlayerInAnyVehicle(playerid))
        return SendClientMessage(playerid,COLOR_WHITE,"[INFO] Voce nao esta em um carro.");
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
        return SendClientMessage(playerid,COLOR_YELLOW,"[INFO] Voce nao e o condutor!");
    switch(GetVehicleModel(GetPlayerVehicleID(playerid))
    {
        case 411, 579, 597, 602:
        {
            ShowMenuForPlayer(TuningMenu, playerid);
            TogglePlayerControllable(playerid,0);
        }
        default: SendClientMessage(playerid,COLOR_YELLOW,"[AVISO] Nao e permitido voce modificar este veiculo");
    }
    return 1;
}
coloquei so alguns modelos, se quiser acresentar mais n e dificil...

so estudar como usar switch.
Reply


Messages In This Thread
Troca de include - by GuiihCamargo - 14.01.2014, 07:05
Re: Troca de include - by Diogo123 - 14.01.2014, 09:43
Re: Troca de include - by kevinho.007 - 14.01.2014, 10:57
Re: Troca de include - by PT - 14.01.2014, 17:04
Re: Troca de include - by GuiihCamargo - 14.01.2014, 17:24
Re: Troca de include - by PT - 14.01.2014, 18:37
Re: Troca de include - by GuiihCamargo - 14.01.2014, 19:15
Re: Troca de include - by Schocc - 14.01.2014, 19:22
Re: Troca de include - by GuiihCamargo - 14.01.2014, 19:25
Re: Troca de include - by Schocc - 14.01.2014, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)