ayuda
#3

Yo tengo estу asi, es el modelo del autobus, porque no se ponerlo por ID, el autobus es ID 1


pawn Код:
if(GetVehicleModel(vehicleid) == 437) //
        {
        SafeDialogEx(playerid,DIALOG_AUTOBUS,DIALOG_STYLE_LIST,"Autobus coste 60$","Pagar\nNo pagar","","");
        }
        return 1;
        }

y luego lo que hace

pawn Код:
case DIALOG_AUTOBUS:
        {
            if(response == 1)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        if(GetPlayerCash(playerid) < 60)
                        {
                            return SendClientMessageEx(playerid, COLOR_WHITE, "No tienes dinero para pagar!");
                        }
                        GivePlayerCash(playerid, -60);
                    }
                    case 1:
                    {
                            RemovePlayerFromVehicle(playerid);
                            SendClientMessageEx(playerid, COLOR_WHITE, "No tuviste para pagar, y te bajaste del autobus");
                    }
                }
            }
        }
Reply


Messages In This Thread
ayuda - by Metzone - 27.09.2014, 15:22
Respuesta: ayuda - by TheScriptMan - 27.09.2014, 16:17
Re: ayuda - by Metzone - 27.09.2014, 21:56
Re: ayuda - by Metzone - 27.09.2014, 22:17
Respuesta: ayuda - by [J]ulian - 27.09.2014, 22:26
Respuesta: Re: ayuda - by Goncho28 - 27.09.2014, 22:48
Re: ayuda - by Metzone - 27.09.2014, 23:19
Respuesta: ayuda - by [J]ulian - 27.09.2014, 23:29
Re: ayuda - by Metzone - 27.09.2014, 23:31
Respuesta: Re: ayuda - by TheScriptMan - 28.09.2014, 00:39

Forum Jump:


Users browsing this thread: 2 Guest(s)