Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //***********************************************************************************CONFIG**********************************************************************************************
- //In dieser Version gibts noch keine Konfiguration
- //Geplant: Anpassbare Fahrzeuge
- //***********************************************************************************ENDE************************************************************************************************
- //Verändere NICHTS unter diesen Zeilen wenn du nicht genau weisst was du tust!
- /* Dieses Filterscript wurde erstellt von PoTTii, entfernen des Copyrights ist strafbar und kann gemäss dem geltenden Gesetz Bestraft werden */
- #define FILTERSCRIPT
- #include <a_samp>
- #define DIA_VEH 32674
- #define DIA_CAR 32675
- #define DIA_BIKE 32676
- #define DIA_BOAT 32677
- #define DIA_FLY 12423
- #define DIA_HELI 10234
- #define rot 0xFF0000FF
- new Float:VehPos[4];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print(" Car Spawner by PoTTii: Erfolgreich geladen!");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/veh", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, DIA_VEH, DIALOG_STYLE_LIST, "Fahrzeug-Menu", "Autos\nBikes\nBoote\nFlugzeuge\nHelikopter", "Weiter", "Abbrechen");
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- //--------------------------------------[FAHRZEUG DIALOG]-------------------------------------------------------------------
- if(dialogid == DIA_VEH)
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Abgebrochen");
- return 1;
- }
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, DIA_CAR, DIALOG_STYLE_LIST, "Auto-Menu", "Buffalo\nSuper GT\nSultan\nInfernus\nCheetah", "Weiter", "Zurück");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIA_BIKE, DIALOG_STYLE_LIST, "Bike-Menu", "PCJ-600\nFreeway\nFaggio\nSanchez\nQuad", "Weiter", "Zurück");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, DIA_BOAT, DIALOG_STYLE_LIST, "Boot-Menu", "Coastguard\nDinghy\nJetmax\nPredator\nSquallo", "Weiter", "Zurück");
- }
- case 3:
- {
- ShowPlayerDialog(playerid, DIA_FLY, DIALOG_STYLE_LIST, "Flugzeug-Menu", "Skimmer\nBeagle\nCropduster\nStuntflugzeug\nShamal", "Weiter", "Zurück");
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIA_HELI, DIALOG_STYLE_LIST, "Helikopter-Menu", "Cargobob\nRaindance\nLeviathan\nSparrow\nMaverick", "Weiter", "Zurück");
- }
- }
- }
- //--------------------------------------[Der Dialog für die Autos]------------------------------------------------------------------
- if(dialogid == DIA_CAR)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIA_VEH, DIALOG_STYLE_LIST, "Fahrzeug-Menu", "Autos\nBikes\nBoote\nFlugzeuge\nHelikopter", "Weiter", "Abbrechen");
- return 0;
- }
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(402,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 1:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(506,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 2:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(560,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 3:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(411,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 4:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(415,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- }
- //---------------------------------------------------------[Dialog für die Bikes]------------------------------------------------------------
- if(dialogid == DIA_BIKE)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIA_VEH, DIALOG_STYLE_LIST, "Fahrzeug-Menu", "Autos\nBikes\nBoote\nFlugzeuge\nHelikopter", "Weiter", "Abbrechen");
- return 0;
- }
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(461,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 1:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(463,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 2:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(462,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 3:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(468,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 4:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(471,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- }
- ////////////////////////////////////////////////////////////DIALOG FÜR DIE BOOTE////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == DIA_BOAT)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIA_VEH, DIALOG_STYLE_LIST, "Fahrzeug-Menu", "Autos\nBikes\nBoote\nFlugzeuge\nHelikopter", "Weiter", "Abbrechen");
- return 0;
- }
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(472,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 1:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(473,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 2:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(493,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 3:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(430,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 4:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(446,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- }
- ////////////////////////////////////////////////////////////DIALOGE FÜR FLUGZEUGE////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == DIA_FLY)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIA_VEH, DIALOG_STYLE_LIST, "Fahrzeug-Menu", "Autos\nBikes\nBoote\nFlugzeuge\nHelikopter", "Weiter", "Abbrechen");
- return 0;
- }
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(460,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 1:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(511,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 2:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(512,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 3:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(513,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 4:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(519,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- }
- /////////////////////////////////////////////////////////DIALOGE FÜR DIE HELIS///////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == DIA_HELI)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIA_VEH, DIALOG_STYLE_LIST, "Fahrzeug-Menu", "Autos\nBikes\nBoote\nFlugzeuge\nHelikopter", "Weiter", "Abbrechen");
- return 0;
- }
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(548,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 1:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(563,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 2:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(417,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 3:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(469,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- case 4:
- {
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT)return SendClientMessage(playerid, rot, "Du bist nicht zu Fuss unterwegs!");
- new vehicleid;
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(487,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement