How to make private vehicle with password and dialog?
#8

pawn Код:
public OnStateChange( playerid, newstate, oldstate )
{
    if ( newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == passwordedVeh )
    {
        ShowPlayerDialog( playerid, 777, DIALOG_STYLE_INPUT, "Error", "This vehicle is passworded, enter the password!", "Use Vehicle", "Exit" );
        TogglePlayerControllable( playerid, false );
    }

    return 1;
}
Should work then.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)