Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - #include <a_samp>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_RED 0xAA3333AA
- new Park;
- new Parkhilfe;
- #pragma tabsize 0
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- public OnFilterScriptInit()
- {
- CreateObject(971, 1181.533569, -897.506592, 47.013580, 90.2409, 4.2972, 3.4377);// BSN Park
- CreateObject(971, 1183.869263, -911.674988, 46.826981, 90.2409, 4.2972, 4.2972);//Bsn Park
- CreateObject(4639, 1183.000854, -910.254700, 43.990814, 0.0000, 0.0000, 186.0934);// BSN Park
- Park = CreateObject(971, 1182.252441, -904.438293, 42.308212, 90.2409, 4.2972, 3.4377);
- Parkhilfe = CreatePickup(1239,1,1179.9429,-910.6104,43.2481);
- print("\n--------------------------------------");
- print(" BSN Park Script von Ciber007");
- print("--------------------------------------\n");
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/Parkhilfe", true) == 0)
- {
- if (PlayerToPoint(5.0, playerid, 1179.9429,-910.6104,43.2481))
- {
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"------------------------BSN Parkplatz-------------------------");
- SendClientMessage(playerid, COLOR_LIGHTBLUE," Benutze /Hoch um den Aufzug Hochzufahren. (Kostet 100$) ");
- SendClientMessage(playerid, COLOR_LIGHTBLUE," Benutze /Runter um den Aufzug Runterzufahren. ");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Information:Sie m�ssen am Parkplatz sein um mit ihm zu fahren.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"--------------------------------------------------------------");
- }
- return 1;
- }
- else SendClientMessage(playerid, COLOR_RED,"Sie sind nicht am BSN Parkplatz!!!");
- }
- if (strcmp(cmdtext, "/Hoch", true) == 0)
- {
- if (PlayerToPoint(5.0, playerid,1181.9728,-904.4827,43.4915))
- {
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vielen Dank, dass sie auf dem Dach parken.");
- GivePlayerMoney(playerid,-100);
- MoveObject(Park,1182.568237, -904.536377, 46.980690, 3.5);
- }
- return 1;
- }
- else SendClientMessage(playerid, COLOR_RED,"Sie sind nicht am BSN Parkplatz!!!");
- }
- if (strcmp(cmdtext, "/Runter", true) == 0)
- {
- if (PlayerToPoint(5.0, playerid,1181.9728,-904.4827,48.1644))
- {
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vielen Dank, dass sie auf dem Dach geparkt haben.");
- MoveObject(Park,1182.252441, -904.438293, 42.308212, 3.5);
- }
- return 1;
- }
- else SendClientMessage(playerid, COLOR_RED,"Sie sind nicht am BSN Parkplatz!!!");
- }
- return 0;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == Parkhilfe)
- {
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Schreibe /Parkhilfe um die Parkhilfe zu lesen.");
- }
- return 1;
- }
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    