Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Scripted By Gregory_Kouk [Gregory00]
- CREDITS:
- •SAMP
- •Gogorakis
- •Gregory00
- If you want to re-release it with edits or something...
- ----------------->DO NOT REMOVE THE CREDITS(!)<-----------------
- */
- #include <a_samp>
- #define Gelb 0xFFFF00AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define CreateDynamic3DTextLabel
- #define sirene1
- new SupMobil[MAX_PLAYERS];
- new Text3D:SupMobilText[MAX_PLAYERS];
- new SupMobilLicht[MAX_PLAYERS];
- new SupMobilLicht2[MAX_PLAYERS];
- new HatSupmobil[MAX_PLAYERS];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" SupMobil - Created By Gregory");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" SupMobil - Created By Gregory");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/supmobil", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,16,DIALOG_STYLE_LIST,"Admin SupMobil Spawner","Comet\nTug\nQuad","Spawnen","Cancel");
- return 1;
- }
- if (strcmp("/slock", cmdtext, true, 10) == 0)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid])
- {
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- if(i == playerid) continue;
- SetVehicleParamsForPlayer(SupMobil[playerid],i,0,1);
- }
- SendClientMessage(playerid,COLOR_YELLOW,"Your SupMobil Has Been Locked!");
- }
- return 1;
- }
- if (strcmp("/dsupmobil", cmdtext, true, 10) == 0)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid])
- {
- new currentveh;
- currentveh = SupMobil[playerid];
- DestroyVehicle(currentveh);
- SendClientMessage(playerid,-1,"You've Successfully Destroyed This SupMobil");
- }
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 16)
- {
- if(response)
- switch(listitem)
- {
- case 0:
- {
- new Float:x, Float:y, Float:z;
- new Float:angle,text[128];
- GetPlayerFacingAngle(playerid, angle);
- GetPlayerPos(playerid, x,y,z);
- LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
- SupMobil[playerid] = CreateVehicle(480, x,y,z+2,angle,232,232,99999);
- PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
- LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, "You have your Comet Spawned!");
- HatSupmobil[playerid] = 1;
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- SupMobilText[playerid] = Create3DTextLabel(text, 0xFFFF00AA ,x,y,z, 40.0,0);// Examen
- SupMobilLicht[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(SupMobilLicht[playerid], SupMobil[playerid], 0.6, -1, 0.69, 0 ,0, 0);
- SupMobilLicht2[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(SupMobilLicht2[playerid], SupMobil[playerid], -0.6, -1, 0.69 ,0, 0, 0);
- AddVehicleComponent(SupMobil[playerid], 1010); // Nitro
- }
- case 1:
- {
- new Float:x, Float:y, Float:z;
- new Float:angle,text[128];
- GetPlayerFacingAngle(playerid, angle);
- GetPlayerPos(playerid, x,y,z);
- LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
- SupMobil[playerid] = CreateVehicle(583, x,y,z+2,angle,232,232,99999);
- PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
- LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
- SendClientMessage(playerid, COLOR_YELLOW, "You have your Tug Spawned!");
- HatSupmobil[playerid] = 1;
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- SupMobilText[playerid] = Create3DTextLabel(text, 0xFFFF00AA ,x,y,z, 40.0,0);// Examen
- SupMobilLicht[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(SupMobilLicht[playerid], SupMobil[playerid], 0.4, -0.33, 1.6 ,0 ,0 ,0);
- AddVehicleComponent(SupMobil[playerid], 1010); // Nitro
- }
- case 2:
- {
- new Float:x, Float:y, Float:z;
- new Float:angle,text[128];
- GetPlayerFacingAngle(playerid, angle);
- GetPlayerPos(playerid, x,y,z);
- LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
- SupMobil[playerid] = CreateVehicle(471, x,y,z+2,angle,232,232,99999);
- PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
- LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, "You have your Quad spawned!");
- HatSupmobil[playerid] = 1;
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- SupMobilText[playerid] = Create3DTextLabel(text, 0xFFFF00AA ,x,y,z, 40.0,0);// Examen
- //SupMobilText[playerid] = CreateDynamic3DTextLabel(text, 0xFFFF00AA, x,y,z, 40.0, 0, 1);
- SupMobilLicht[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(SupMobilLicht[playerid], SupMobil[playerid], 0 ,0.74 ,0.37, 0, 0 ,0);
- AddVehicleComponent(SupMobil[playerid], 1010); // Nitro
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment