help me pls
#6

Код:
    new szDialog20[1024],vehicleid = GetPlayerVehicleID(playerid);//variable to get vehicle ids;
    if(GetVehicleModel(vehicleid) == 447 && PlayerInfo[playerid][Level] == 0)//if player is pilot then he can drive
    {
        RemovePlayerFromVehicle(playerid);
        GivePlayerMoney(playerid, -50000);
        strcat(szDialog20, "{FF4500}Only admin can use this vehicle [Heavy Vehicle].\n",sizeof(szDialog20));
	    strcat(szDialog20, "{FF4500}If you keep enter this vehicle,you will be charged for 50000$",sizeof(szDialog20));
	    ShowPlayerDialog(playerid,6951,DIALOG_STYLE_MSGBOX,"{FF0000}Warning Messages",szDialog20,"Ok","");
    }
    if(GetVehicleModel(vehicleid) == 520 && PlayerInfo[playerid][Level] == 0)//if player is pilot then he can drive
    {
        RemovePlayerFromVehicle(playerid);
        GivePlayerMoney(playerid, -50000);
        strcat(szDialog20, "{FF4500}Only admin can use this vehicle [Heavy Vehicle].\n",sizeof(szDialog20));
	    strcat(szDialog20, "{FF4500}If you keep enter this vehicle,you will be charged for 50000$",sizeof(szDialog20));
	    ShowPlayerDialog(playerid,6951,DIALOG_STYLE_MSGBOX,"{FF0000}Warning Messages",szDialog20,"Ok","");
    }
    if(GetVehicleModel(vehicleid) == 425 && PlayerInfo[playerid][Level] == 0)//if player is pilot then he can drive
    {
        RemovePlayerFromVehicle(playerid);
        GivePlayerMoney(playerid, -50000);
        strcat(szDialog20, "{FF4500}Only admin can use this vehicle [Heavy Vehicle].\n",sizeof(szDialog20));
	    strcat(szDialog20, "{FF4500}If you keep enter this vehicle,you will be charged for 50000$",sizeof(szDialog20));
	    ShowPlayerDialog(playerid,6951,DIALOG_STYLE_MSGBOX,"{FF0000}Warning Messages",szDialog20,"Ok","");
    }
    if(GetVehicleModel(vehicleid) == 432 && PlayerInfo[playerid][Level] == 0)//if player is pilot then he can drive
    {
        RemovePlayerFromVehicle(playerid);
        GivePlayerMoney(playerid, -50000);
        strcat(szDialog20, "{FF4500}Only admin can use this vehicle [Heavy Vehicle].\n",sizeof(szDialog20));
	    strcat(szDialog20, "{FF4500}If you keep enter this vehicle,you will be charged for 50000$",sizeof(szDialog20));
	    ShowPlayerDialog(playerid,6951,DIALOG_STYLE_MSGBOX,"{FF0000}Warning Messages",szDialog20,"Ok","");
    }
yeah,but it removed player when he not an admin
but,that dialog appear when we enter hydra,rhino,seasparrow and hydra
Reply


Messages In This Thread
help me pls - by KyNe - 02.01.2018, 09:11
Re: help me pls - by Kane - 02.01.2018, 09:14
Re: help me pls - by KyNe - 02.01.2018, 09:28
Re: help me pls - by Kane - 02.01.2018, 09:30
Re: help me pls - by KyNe - 02.01.2018, 09:34
Re: help me pls - by KyNe - 02.01.2018, 09:47

Forum Jump:


Users browsing this thread: 2 Guest(s)