Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==============================================================================
- #include <a_samp>
- #include <zcmd>
- //==============================================================================
- #define motocicletas 100
- //==============================================================================
- main()
- {
- print("==========================================");
- print("SiStEmA De MoToCiClEtAs ");
- print("==========================================");
- }
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- //==============================================================================
- CMD:motos(playerid, params[])
- {
- ShowPlayerDialog(playerid,motocicletas,DIALOG_STYLE_LIST, "{FFFFFF}Motocicletas", "NRG-500\nFCR-900\nPCJ-600\nBF-400\nFreeway\nWayfarer\nSanchez\nHPV-1000\nFaggio\nPizzaboy\nQuadbike", "Spawnar", "Cancelar");
- return 1;
- }
- CMD:creditos(playerid, params[])
- {
- SendClientMessage(playerid, 0xFF0000FF,"Criador: Matheus_Vieira");
- SendClientMessage(playerid, 0xFF0000FF,"Postador: Matheus_Vieira");
- return 1;
- }
- //==============================================================================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == motocicletas)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(522, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 1:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(521, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 2:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(461, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 3:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(581, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 4:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(463, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 5:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(586, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 6:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(468, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 7:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(523, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 8:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(462, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 9:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(448, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- case 10:
- {
- new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
- Int = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Ang);
- pVeh = CreateVehicle(471, X, Y, Z, Ang, 0, 0, -1);
- LinkVehicleToInterior(pVeh, Int);
- PutPlayerInVehicle(playerid, pVeh, 0);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement