Engine.
#4

You can try doing something like this.

pawn Код:
if(newkeys == KEY_FIRE)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new rndNum = Random(1);
    switch(rndNum)
    {
        case 1: // Success
        {
                TogglePlayerControllable(playerid, 1);
                engineOn[vehicle] = 1;
                SendClientMessage(playerid, COLOR_RED, "The engine started normaly.");
               
        }
        case 0: // Fail
        {
                engineOn[vehicle] = 0;
                SendClientMessage(playerid, COLOR_RED, "The engine didn't start,try again.");
        }
    }
    }
    return 1;
}
Reply


Messages In This Thread
Engine. - by dorperez - 02.02.2013, 16:14
Re: Engine. - by T0pAz - 02.02.2013, 16:16
Re: Engine. - by dorperez - 02.02.2013, 16:53
Re: Engine. - by T0pAz - 02.02.2013, 16:57
Re: Engine. - by dorperez - 02.02.2013, 17:04
Re: Engine. - by dorperez - 08.02.2013, 15:30
Re: Engine. - by Riddick94 - 08.02.2013, 15:33
Re: Engine. - by dorperez - 08.02.2013, 15:42
Re: Engine. - by ThePhenix - 08.02.2013, 15:45
Re: Engine. - by dorperez - 08.02.2013, 15:53

Forum Jump:


Users browsing this thread: 2 Guest(s)