How to allow just some cars...
#2

PHP код:
if(dialogid == 687// Vehicle
    
{
        if(
response)
        {
            new 
model strval(inputtext);
            if(
model 400)
                return 
ShowPlayerDialog(playerid687DIALOG_STYLE_INPUT"Vehicle""Please enter a vehicle ID from 400 to 611.""Create""Cancel");
            if(
model 611)
                return 
ShowPlayerDialog(playerid687DIALOG_STYLE_INPUT"Vehicle""Please enter a vehicle ID from 400 to 611.""Create""Cancel");
            if(
model != 404 || model != 410 || model != 436)
            {
                
SendClientMessage(playerid0xE21F1FFF"Those vehicles are restricted!");
                
ShowPlayerDialog(playerid687DIALOG_STYLE_INPUT"Vehicle""Please enter a vehicle ID from 400 to 611.""Create""Cancel");
                return 
1;
            }
            
SetupHouseInfo[playerid][SetupCarModel] = model;
            
IsSettingUpVehicle[playerid] = true;
            
ShowPlayerDialog(playerid255DIALOG_STYLE_MSGBOX"Vehicle Setup""Go to the position you want your vehicle to spawn, then type /confirm.""Select""Cancel");
            return 
1;
        } 
Reply


Messages In This Thread
How to allow just some cars... - by AndreiWow - 18.01.2016, 09:25
Re: How to allow just some cars... - by SupperRobin6394 - 18.01.2016, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)