Venzio Geplaatst: 14 februari 2009 Rapport Geplaatst: 14 februari 2009 Wie kan deze commandos in een filterscript zetten?: if(strcmp(cmdtext, "/Teleports2", true) == 0) { SendClientMessage(playerid, 0xFFFFFFAA, "<<<<<=====Xtreme Teleports=====>>>>>"); SendClientMessage(playerid, 0xFFFFFFFF, "/lstower"); SendClientMessage(playerid, 0xFFFFFFFF, "/home"); SendClientMessage(playerid, 0xFFFFFFFF, "/mountchilliad"); SendClientMessage(playerid, 0xFFFFFFFF, "/grove-street"); SendClientMessage(playerid, 0xFFFFFFFF, "/lsairport"); SendClientMessage(playerid, 0xFFFFFFFF, "/skatepark"); SendClientMessage(playerid, 0xFFFFFFFF, "/bigjump"); SendClientMessage(playerid, 0xFFFFFFFF, "/IslandDM"); SendClientMessage(playerid, 0xFFFFFFFF, "/pierride"); SendClientMessage(playerid, 0xFFFFFFFF, "/xtremebasejump"); SendClientMessage(playerid, 0xFFFFFFFF, "/xtremejump"); return 1; } if(strcmp(cmdtext, "/Commands2", true) == 0) { SendClientMessage(playerid, COLOR_BLUE, "<<<<<=====Xtreme Stunt Commands=====>>>>>"); SendClientMessage(playerid, COLOR_RED, "/help"); SendClientMessage(playerid, 0xFFFFFFFF, "/Teleports"); SendClientMessage(playerid, 0xFFFFFFFF, "/kill"); SendClientMessage(playerid, 0xFFFFFFFF, "/lock /unlock"); SendClientMessage(playerid, 0xFFFFFFFF, ">>>--For you car---<<<"); SendClientMessage(playerid, 0xFFFFFFFF, "/fix /nrg"); SendClientMessage(playerid, 0xFFFFFFFF, "/nitro /flip"); SendClientMessage(playerid, 0xFFFFFFFF, ">>>--For your self!--<<<"); SendClientMessage(playerid, 0xFFFFFFFF, "/healme!"); return 1; } if(strcmp("/lstower", cmdtext, true) == 0) { SetPlayerPos(playerid, 1540.9609,-1364.1160,329.7969); SendClientMessage(playerid, COLOR_GREEN, "***You are teleported to lstower!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1540.9609,-1364.1160,329.7969); format(string,sizeof(string),"%s has entert the LS Tower for a nice jump!! (/lstower)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/trampoline", cmdtext, true) == 0) { SetPlayerPos(playerid, 1786.329102,-1076.049561,277.649078); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to trampoline!!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1786.329102,-1076.049561,277.649078); format(string,sizeof(string),"%s has entert trampoline(/trampoline)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/xtremejump", cmdtext, true) == 0) { SetPlayerPos(playerid, 2818.538330,-1415.760986,7125.912598); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to xtremejump!!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 2818.538330,-1415.760986,7125.912598); format(string,sizeof(string),"%s has entert Xtremejump! (/xtremejump)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/home", cmdtext, true) == 0) { SetPlayerPos(playerid, 523.5668,2497.7595,41.4332); SendClientMessage(playerid, COLOR_WHITE, "***You are teleported to home!"); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 523.5668,2497.7595,41.4332); format(string,sizeof(string),"%s has entert the home basis!! (/home)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/grove-street", cmdtext, true) == 0) { SetPlayerPos(playerid, 2482.2405,-1685.6420,13.5078); SendClientMessage(playerid, COLOR_GREEN, "***You are teleported to Grove Street!"); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 2482.2405,-1685.6420,13.5078); format(string,sizeof(string),"%s has entert Grove Street to be a real gangster!! (/grove-street)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/xtremebasejump", cmdtext, true) == 0) { SetPlayerPos(playerid, 2606.8069,-1682.5985,1847.5437); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to xtremebasejump!!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 2606.8069,-1682.5985,1847.5437); format(string,sizeof(string),"%s has entert the /xtremebasejump)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/lsairport", cmdtext, true) == 0) { SetPlayerPos(playerid, 1884.6954,-2542.9761,17.2270); SendClientMessage(playerid, COLOR_RED, "***You are teleported to Los Santos Airport!"); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1884.6954,-2542.9761,17.2270); format(string,sizeof(string),"%s has entert LS Airport for a stuntplace! (/lsairport)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/mountchilliad", cmdtext, true) == 0) { SetPlayerPos(playerid, -2360.0837,-1650.8838,487.0780); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to Mount Chilliad!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, -2360.0837,-1650.8838,487.0780); format(string,sizeof(string),"%s has entert Mount Chilliad! (/mountchilliad)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/bigjump", cmdtext, true) == 0) { SetPlayerPos(playerid, -662.0461,2306.0208,136.0407); SendClientMessage(playerid, COLOR_YELLOW, "***You are teleported to Big Jump!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, -662.0461,2306.0208,136.0407); format(string,sizeof(string),"%s has entert Big Jump High Speed!! (/bigjump)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/IslandDM", cmdtext, true) == 0) { SetPlayerPos(playerid, -695.8021,2202.9192,43.0047); SendClientMessage(playerid, COLOR_GREEN, "***You are teleported to IslandDM!"); GivePlayerWeapon(playerid,34,9999); GivePlayerWeapon(playerid,29,9999); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, -695.8021,2202.9192,43.0047); format(string,sizeof(string),"%s has enter Island DM for a nice Deatmatch!! (/IslandDM)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/Skatepark", cmdtext, true) == 0) { SetPlayerPos(playerid, 1913.4882,-1402.4033,13.5703); SendClientMessage(playerid, COLOR_RED, "***You are teleported to Skatepark!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1913.4882,-1402.4033,13.5703); format(string,sizeof(string),"%s has entert The Skatepark (/Skatepark)!!",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/pierride", cmdtext, true) == 0) { SetPlayerPos(playerid, 830.4819,-1825.6509,12.2695); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to Pierride!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 830.4819,-1825.6509,12.2695); format(string,sizeof(string),"%s has entert the Pierride (/pierride)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/Admincity", cmdtext, true) == 0) { SetPlayerPos(playerid, 530.1823,-1861.4578,4.2529); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to Admin Home!!"); GivePlayerWeapon(playerid,46,10); GivePlayerWeapon(playerid,43,9999); GivePlayerWeapon(playerid,35,10000); GivePlayerWeapon(playerid,31,10000); return 1; } if (!strcmp(cmdtext, "/healme", true)) { SetPlayerHealth(playerid, 100); SendClientMessage(playerid, COLOR_YELLOW, "Your health has been restored"); return 1; } if (strcmp(cmdtext, "/lock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFFFF00AA,"You can only lock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, 0xFFFF00AA, "Vehicle locked!"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1056,pX,pY,pZ); } else { SendClientMessage(playerid, 0xFFFF00AA, "You're not in a vehicle!"); } return 1; } if (strcmp(cmdtext, "/unlock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFFFF00AA,"You can only unlock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0); } SendClientMessage(playerid, 0xFFFF00AA, "Vehicle unlocked!"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1057,pX,pY,pZ); } else { SendClientMessage(playerid, 0xFFFF00AA, "You're not in a vehicle!"); } return 1; } if (!strcmp(cmdtext, "/kill", true)) { SetPlayerHealth(playerid, 0); SendClientMessage(playerid, COLOR_RED, "You are dead!!"); return 1; } if (strcmp(cmdtext, "/flip", true)==0) { new VehicleID, Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, 0); GameTextForPlayer(playerid, "~b~Car Fliped!",1900,1); return 1; } if (!strcmp("/fix", cmdtext, true)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 10000); GameTextForPlayer(playerid, "~b~vehicle Fixed!",1900,1); return 1; } if(strcmp(cmdtext,"/nrg",true) == 0) { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid,X,Y,Z); CreateVehicle(522,X,Y+1,Z+1,5,3,0,90000); SendClientMessage(playerid, 0x00BFFFAA, "** A free ''NRG-500'' for you!"); return 1; } if(strcmp("/nitro", cmdtext, true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); AddVehicleComponent(VehicleID, 1010); } return 1; } if (strcmp(cmdtext, "/open", true) == 0) { MoveObject(pdgate, 528.183655, -1906.332764, 6.001883, 0.0000); return 1; } if (strcmp(cmdtext, "/close", true) == 0) { MoveObject(pdgate, 528.183655, -1906.332764, 6.001883, 0.0000); return 1; } En deze voertuigen?: AddStaticVehicle(520,324.7664,2546.0984,16.4876,178.8663,-1,-1); AddStaticVehicle(520,290.2709,2544.7771,16.5000,178.0178,-1,-1); AddStaticVehicle(506,261.9073,2522.6987,16.4046,175.9395,-1,-1); AddStaticVehicle(506,244.0523,2524.3516,16.4171,180.8316,-1,-1); AddStaticVehicle(520,-73.1792,2502.1990,16.1641,270.0,-1,-1); AddStaticVehicle(520,101.5550,2584.0725,17.4540,178.0316,-1,-1); AddStaticVehicle(520,362.7701,2606.3970,17.1174,12.3939,1,1); AddStaticVehicle(522,825.6852,-1821.0646,12.3553,179.3734,1,1); AddStaticVehicle(568,831.0392,-1821.6791,12.2771,177.8067,1,1); AddStaticVehicle(522,834.2918,-1821.7831,12.2400,199.1370,1,1); AddStaticVehicle(568,830.1567,-1832.5093,12.3640,182.8435,1,1); AddStaticVehicle(506,538.6519,2474.5779,41.1377,0.4572,6,6); AddStaticVehicle(506,535.3579,2475.0676,41.1377,0.0667,6,6); AddStaticVehicle(506,531.1741,2475.2722,41.1377,357.2381,6,6); AddStaticVehicle(506,527.0754,2474.9084,41.1376,359.1770,6,6); AddStaticVehicle(522,-2348.5007,-1600.2532,483.1617,245.5327,3,3); AddStaticVehicle(522,-2347.7871,-1598.4146,483.1530,249.5255,3,8); AddStaticVehicle(522,-2347.0271,-1596.7030,483.1454,246.1077,7,79); AddStaticVehicle(539,-2345.7583,-1594.9578,482.9546,244.3204,61,98); AddStaticVehicle(539,-2344.0798,-1591.2114,482.9384,246.3342,70,86); AddStaticVehicle(444,-2348.2385,-1607.7753,483.9740,254.6177,32,66); AddStaticVehicle(468,-2353.7659,-1619.0569,483.3338,263.4581,53,53); AddStaticVehicle(468,-2354.1091,-1620.8408,483.3275,274.1751,3,3); AddStaticVehicle(468,-2354.5349,-1622.1902,483.3289,275.5557,6,6); AddStaticVehicle(411,-2354.0391,-1626.8691,483.3973,256.0043,12,1); AddStaticVehicle(411,-2354.8396,-1630.1757,483.4019,263.5561,64,1); AddStaticVehicle(411,-2355.4822,-1633.8823,483.4200,283.1850,123,1); AddStaticVehicle(444,-2348.2874,-1607.9702,483.9781,254.5674,32,66); AddStaticVehicle(444,-2350.5298,-1614.6335,484.0019,260.0581,32,66); AddStaticVehicle(522,1873.8562,-2538.5452,13.1119,87.0351,39,106); AddStaticVehicle(522,1895.6555,-2538.1084,13.1170,268.6939,39,106); AddStaticVehicle(522,1872.9689,-2547.9795,13.1065,90.7427,39,106); AddStaticVehicle(522,1897.8190,-2548.1030,13.1125,266.8919,39,106); AddStaticVehicle(522,1886.7231,-2552.5562,16.8013,91.1217,39,106); AddStaticVehicle(522,1887.1718,-2533.5554,16.8043,90.1357,39,106); AddStaticVehicle(411,1865.5222,-2557.7598,13.2768,90.0802,12,1); AddStaticVehicle(411,1866.9657,-2529.5291,13.2765,88.2252,12,1); AddStaticVehicle(411,1900.1254,-2530.0256,13.2775,268.4057,12,1); AddStaticVehicle(411,1901.3485,-2555.7883,13.2764,266.4657,12,1); AddStaticVehicle(522,526.1097,2474.7898,41.1377,0.2685,6,6); AddStaticVehicle(522,523.3686,2475.4009,41.1377,1.3653,6,6); AddStaticVehicle(522,519.6053,2475.4871,41.1377,1.9144,6,6); AddStaticVehicle(522,514.0714,2475.4805,41.1379,358.9450,6,6); AddStaticVehicle(522,510.5817,2474.6985,41.1377,2.0856,6,6); AddStaticVehicle(522,506.4825,2474.9568,41.1375,0.5851,6,6); AddStaticVehicle(522,502.3668,2475.4651,41.1377,1.6536,6,6); AddStaticVehicle(522,825.7166,-1833.0715,11.9998,182.8751,39,106); AddStaticVehicle(522,835.2729,-1833.4877,11.9248,174.0601,39,106); AddStaticVehicle(522,534.6107,-1877.3370,3.2841,174.0194,39,106); AddStaticVehicle(522,530.5355,-1879.3346,3.1498,177.9974,39,106); AddStaticVehicle(522,525.1447,-1878.9294,3.0799,177.7009,39,106); Bedankt! Reageren
Big Boss Geplaatst: 14 februari 2009 Rapport Geplaatst: 14 februari 2009 (bewerkt) 1) Open Pawno 2) Druk op New File 3) Uncomment de lijn define FILTERSCRIPT 4) Verwijder de OnGameModeInit en OnGameModeExit callbacks 5) Plak je commando's en voertuigen onder de juiste callbacks (voertuigen onder OnFilterScriptInit, d.m.v CreateVehicle), zoals je dat in een normale gamemode doet 6) Sla op in de map filterscripts 7) Verander je server.cfg en start je server. Bewerkt: 14 februari 2009 door Big Boss Reageren
Thinkie Geplaatst: 15 februari 2009 Rapport Geplaatst: 15 februari 2009 (bewerkt) 1) Open Pawno2) Druk op New File 3) Uncomment de lijn define FILTERSCRIPT 4) Verwijder de OnGameModeInit en OnGameModeExit callbacks 5) Plak je commando's en voertuigen onder de juiste callbacks (voertuigen onder OnFilterScriptInit, d.m.v CreateVehicle), zoals je dat in een normale gamemode doet 6) Sla op in de map filterscripts 7) Verander je server.cfg en start je server. add er nog 2, Leer scripten, Mensen naaien is niet goed. Bewerkt: 15 februari 2009 door Thinkie Reageren
Venzio Geplaatst: 16 februari 2009 Auteur Rapport Geplaatst: 16 februari 2009 Ik kan het wel alleen, ik krijg steeds errors.. Reageren
Crusher!! Geplaatst: 16 februari 2009 Rapport Geplaatst: 16 februari 2009 Ik kan het wel alleen, ik krijg steeds errors.. dus dan kan je het niet alleen Reageren
Thinkie Geplaatst: 17 februari 2009 Rapport Geplaatst: 17 februari 2009 Ik kan het wel alleen, ik krijg steeds errors.. fix die dan :X of post die -_- Reageren
grasmanek94 Geplaatst: 24 februari 2009 Rapport Geplaatst: 24 februari 2009 (bewerkt) kijk's of dit werkt: (edit wel voor jezelf de onfilterscriptinit ) BTW.. wat moet pdgate eigenlijk zijn?.. of welk object moet het zijn? Code met 0 errors en 0 warnings: //-------START----OF---FILTERSCRIPT-------------------------------------------// // START OF INCLUDES #include <a_samp> // END OF INLCUDES // START OF DEFINITIONS #define COLOR_RED 0xFF0000FF #define COLOR_YELLOW 0xFFFF00FF #define COLOR_GREEN 0x00FF00FF #define COLOR_WHITE 0xFFFFFFFF #define COLOR_BLUE 0x0000BBAA //--------------------------- new pdgate; // END OF DEFINITIONS // START ONFILTER's public OnFilterScriptInit() { print("+----------LOADED---------+"); print("| Lotniskowiec by Gamer_Z!|"); print("+-------------------------+"); return 1; } public OnFilterScriptExit() { print("+-------UNLOADED----------+"); print("| Lotniskowiec by Gamer_Z!|"); print("+-------------------------+"); return 1; } // END ONFILTER's // START ONGAMEMODEINIT public OnGameModeInit() { AddStaticVehicle(520,324.7664,2546.0984,16.4876,178.8663,-1,-1); AddStaticVehicle(520,290.2709,2544.7771,16.5000,178.0178,-1,-1); AddStaticVehicle(506,261.9073,2522.6987,16.4046,175.9395,-1,-1); AddStaticVehicle(506,244.0523,2524.3516,16.4171,180.8316,-1,-1); AddStaticVehicle(520,-73.1792,2502.1990,16.1641,270.0,-1,-1); AddStaticVehicle(520,101.5550,2584.0725,17.4540,178.0316,-1,-1); AddStaticVehicle(520,362.7701,2606.3970,17.1174,12.3939,1,1); AddStaticVehicle(522,825.6852,-1821.0646,12.3553,179.3734,1,1); AddStaticVehicle(568,831.0392,-1821.6791,12.2771,177.8067,1,1); AddStaticVehicle(522,834.2918,-1821.7831,12.2400,199.1370,1,1); AddStaticVehicle(568,830.1567,-1832.5093,12.3640,182.8435,1,1); AddStaticVehicle(506,538.6519,2474.5779,41.1377,0.4572,6,6); AddStaticVehicle(506,535.3579,2475.0676,41.1377,0.0667,6,6); AddStaticVehicle(506,531.1741,2475.2722,41.1377,357.2381,6,6); AddStaticVehicle(506,527.0754,2474.9084,41.1376,359.1770,6,6); AddStaticVehicle(522,-2348.5007,-1600.2532,483.1617,245.5327,3,3); AddStaticVehicle(522,-2347.7871,-1598.4146,483.1530,249.5255,3,8 ); AddStaticVehicle(522,-2347.0271,-1596.7030,483.1454,246.1077,7,79); AddStaticVehicle(539,-2345.7583,-1594.9578,482.9546,244.3204,61,98); AddStaticVehicle(539,-2344.0798,-1591.2114,482.9384,246.3342,70,86); AddStaticVehicle(444,-2348.2385,-1607.7753,483.9740,254.6177,32,66); AddStaticVehicle(468,-2353.7659,-1619.0569,483.3338,263.4581,53,53); AddStaticVehicle(468,-2354.1091,-1620.8408,483.3275,274.1751,3,3); AddStaticVehicle(468,-2354.5349,-1622.1902,483.3289,275.5557,6,6); AddStaticVehicle(411,-2354.0391,-1626.8691,483.3973,256.0043,12,1); AddStaticVehicle(411,-2354.8396,-1630.1757,483.4019,263.5561,64,1); AddStaticVehicle(411,-2355.4822,-1633.8823,483.4200,283.1850,123,1); AddStaticVehicle(444,-2348.2874,-1607.9702,483.9781,254.5674,32,66); AddStaticVehicle(444,-2350.5298,-1614.6335,484.0019,260.0581,32,66); AddStaticVehicle(522,1873.8562,-2538.5452,13.1119,87.0351,39,106); AddStaticVehicle(522,1895.6555,-2538.1084,13.1170,268.6939,39,106); AddStaticVehicle(522,1872.9689,-2547.9795,13.1065,90.7427,39,106); AddStaticVehicle(522,1897.8190,-2548.1030,13.1125,266.8919,39,106); AddStaticVehicle(522,1886.7231,-2552.5562,16.8013,91.1217,39,106); AddStaticVehicle(522,1887.1718,-2533.5554,16.8043,90.1357,39,106); AddStaticVehicle(411,1865.5222,-2557.7598,13.2768,90.0802,12,1); AddStaticVehicle(411,1866.9657,-2529.5291,13.2765,88.2252,12,1); AddStaticVehicle(411,1900.1254,-2530.0256,13.2775,268.4057,12,1); AddStaticVehicle(411,1901.3485,-2555.7883,13.2764,266.4657,12,1); AddStaticVehicle(522,526.1097,2474.7898,41.1377,0.2685,6,6); AddStaticVehicle(522,523.3686,2475.4009,41.1377,1.3653,6,6); AddStaticVehicle(522,519.6053,2475.4871,41.1377,1.9144,6,6); AddStaticVehicle(522,514.0714,2475.4805,41.1379,358.9450,6,6); AddStaticVehicle(522,510.5817,2474.6985,41.1377,2.0856,6,6); AddStaticVehicle(522,506.4825,2474.9568,41.1375,0.5851,6,6); AddStaticVehicle(522,502.3668,2475.4651,41.1377,1.6536,6,6); AddStaticVehicle(522,825.7166,-1833.0715,11.9998,182.8751,39,106); AddStaticVehicle(522,835.2729,-1833.4877,11.9248,174.0601,39,106); AddStaticVehicle(522,534.6107,-1877.3370,3.2841,174.0194,39,106); AddStaticVehicle(522,530.5355,-1879.3346,3.1498,177.9974,39,106); AddStaticVehicle(522,525.1447,-1878.9294,3.0799,177.7009,39,106); return 1; } // END ONGAMEMODEINIT // START ONPLAYERCOMMANDTEXT public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/Teleports2", true) == 0) { SendClientMessage(playerid, 0xFFFFFFAA, "<<<<<=====Xtreme Teleports=====>>>>>"); SendClientMessage(playerid, 0xFFFFFFFF, "/lstower"); SendClientMessage(playerid, 0xFFFFFFFF, "/home"); SendClientMessage(playerid, 0xFFFFFFFF, "/mountchilliad"); SendClientMessage(playerid, 0xFFFFFFFF, "/grove-street"); SendClientMessage(playerid, 0xFFFFFFFF, "/lsairport"); SendClientMessage(playerid, 0xFFFFFFFF, "/skatepark"); SendClientMessage(playerid, 0xFFFFFFFF, "/bigjump"); SendClientMessage(playerid, 0xFFFFFFFF, "/IslandDM"); SendClientMessage(playerid, 0xFFFFFFFF, "/pierride"); SendClientMessage(playerid, 0xFFFFFFFF, "/xtremebasejump"); SendClientMessage(playerid, 0xFFFFFFFF, "/xtremejump"); return 1; } if(strcmp(cmdtext, "/Commands2", true) == 0) { SendClientMessage(playerid, COLOR_BLUE, "<<<<<=====Xtreme Stunt Commands=====>>>>>"); SendClientMessage(playerid, COLOR_RED, "/help"); SendClientMessage(playerid, 0xFFFFFFFF, "/Teleports"); SendClientMessage(playerid, 0xFFFFFFFF, "/kill"); SendClientMessage(playerid, 0xFFFFFFFF, "/lock /unlock"); SendClientMessage(playerid, 0xFFFFFFFF, ">>>--For you car---<<<"); SendClientMessage(playerid, 0xFFFFFFFF, "/fix /nrg"); SendClientMessage(playerid, 0xFFFFFFFF, "/nitro /flip"); SendClientMessage(playerid, 0xFFFFFFFF, ">>>--For your self!--<<<"); SendClientMessage(playerid, 0xFFFFFFFF, "/healme!"); return 1; } if(strcmp("/lstower", cmdtext, true) == 0) { SetPlayerPos(playerid, 1540.9609,-1364.1160,329.7969); SendClientMessage(playerid, COLOR_GREEN, "***You are teleported to lstower!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1540.9609,-1364.1160,329.7969); format(string,sizeof(string),"%s has entert the LS Tower for a nice jump!! (/lstower)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/trampoline", cmdtext, true) == 0) { SetPlayerPos(playerid, 1786.329102,-1076.049561,277.649078); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to trampoline!!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1786.329102,-1076.049561,277.649078); format(string,sizeof(string),"%s has entert trampoline(/trampoline)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/xtremejump", cmdtext, true) == 0) { SetPlayerPos(playerid, 2818.538330,-1415.760986,7125.912598); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to xtremejump!!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 2818.538330,-1415.760986,7125.912598); format(string,sizeof(string),"%s has entert Xtremejump! (/xtremejump)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/home", cmdtext, true) == 0) { SetPlayerPos(playerid, 523.5668,2497.7595,41.4332); SendClientMessage(playerid, COLOR_WHITE, "***You are teleported to home!"); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 523.5668,2497.7595,41.4332); format(string,sizeof(string),"%s has entert the home basis!! (/home)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/grove-street", cmdtext, true) == 0) { SetPlayerPos(playerid, 2482.2405,-1685.6420,13.5078); SendClientMessage(playerid, COLOR_GREEN, "***You are teleported to Grove Street!"); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 2482.2405,-1685.6420,13.5078); format(string,sizeof(string),"%s has entert Grove Street to be a real gangster!! (/grove-street)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/xtremebasejump", cmdtext, true) == 0) { SetPlayerPos(playerid, 2606.8069,-1682.5985,1847.5437); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to xtremebasejump!!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 2606.8069,-1682.5985,1847.5437); format(string,sizeof(string),"%s has entert the /xtremebasejump)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/lsairport", cmdtext, true) == 0) { SetPlayerPos(playerid, 1884.6954,-2542.9761,17.2270); SendClientMessage(playerid, COLOR_RED, "***You are teleported to Los Santos Airport!"); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1884.6954,-2542.9761,17.2270); format(string,sizeof(string),"%s has entert LS Airport for a stuntplace! (/lsairport)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/mountchilliad", cmdtext, true) == 0) { SetPlayerPos(playerid, -2360.0837,-1650.8838,487.0780); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to Mount Chilliad!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, -2360.0837,-1650.8838,487.0780); format(string,sizeof(string),"%s has entert Mount Chilliad! (/mountchilliad)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/bigjump", cmdtext, true) == 0) { SetPlayerPos(playerid, -662.0461,2306.0208,136.0407); SendClientMessage(playerid, COLOR_YELLOW, "***You are teleported to Big Jump!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, -662.0461,2306.0208,136.0407); format(string,sizeof(string),"%s has entert Big Jump High Speed!! (/bigjump)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/IslandDM", cmdtext, true) == 0) { SetPlayerPos(playerid, -695.8021,2202.9192,43.0047); SendClientMessage(playerid, COLOR_GREEN, "***You are teleported to IslandDM!"); GivePlayerWeapon(playerid,34,9999); GivePlayerWeapon(playerid,29,9999); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, -695.8021,2202.9192,43.0047); format(string,sizeof(string),"%s has enter Island DM for a nice Deatmatch!! (/IslandDM)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/Skatepark", cmdtext, true) == 0) { SetPlayerPos(playerid, 1913.4882,-1402.4033,13.5703); SendClientMessage(playerid, COLOR_RED, "***You are teleported to Skatepark!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 1913.4882,-1402.4033,13.5703); format(string,sizeof(string),"%s has entert The Skatepark (/Skatepark)!!",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/pierride", cmdtext, true) == 0) { SetPlayerPos(playerid, 830.4819,-1825.6509,12.2695); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to Pierride!"); GivePlayerWeapon(playerid,46,10); new string[52]; new name[24]; GetPlayerName(playerid,name,24); SetPlayerPos(playerid, 830.4819,-1825.6509,12.2695); format(string,sizeof(string),"%s has entert the Pierride (/pierride)",name); SendClientMessageToAll(0xFFFFFFFF,string); return 1; } if(strcmp("/Admincity", cmdtext, true) == 0) { SetPlayerPos(playerid, 530.1823,-1861.4578,4.2529); SendClientMessage(playerid, COLOR_BLUE, "***You are teleported to Admin Home!!"); GivePlayerWeapon(playerid,46,10); GivePlayerWeapon(playerid,43,9999); GivePlayerWeapon(playerid,35,10000); GivePlayerWeapon(playerid,31,10000); return 1; } if (!strcmp(cmdtext, "/healme", true)) { SetPlayerHealth(playerid, 100); SendClientMessage(playerid, COLOR_YELLOW, "Your health has been restored"); return 1; } if (strcmp(cmdtext, "/lock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFFFF00AA,"You can only lock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, 0xFFFF00AA, "Vehicle locked!"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1056,pX,pY,pZ); } else { SendClientMessage(playerid, 0xFFFF00AA, "You're not in a vehicle!"); } return 1; } if (strcmp(cmdtext, "/unlock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFFFF00AA,"You can only unlock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0); } SendClientMessage(playerid, 0xFFFF00AA, "Vehicle unlocked!"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1057,pX,pY,pZ); } else { SendClientMessage(playerid, 0xFFFF00AA, "You're not in a vehicle!"); } return 1; } if (!strcmp(cmdtext, "/kill", true)) { SetPlayerHealth(playerid, 0); SendClientMessage(playerid, COLOR_RED, "You are dead!!"); return 1; } if (strcmp(cmdtext, "/flip", true)==0) { new VehicleID, Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, 0); GameTextForPlayer(playerid, "~b~Car Fliped!",1900,1); return 1; } if (!strcmp("/fix", cmdtext, true)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 10000); GameTextForPlayer(playerid, "~b~vehicle Fixed!",1900,1); return 1; } if(strcmp(cmdtext,"/nrg",true) == 0) { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid,X,Y,Z); CreateVehicle(522,X,Y+1,Z+1,5,3,0,90000); SendClientMessage(playerid, 0x00BFFFAA, "** A free ''NRG-500'' for you!"); return 1; } if(strcmp("/nitro", cmdtext, true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); AddVehicleComponent(VehicleID, 1010); } return 1; } if (strcmp(cmdtext, "/open", true) == 0) { MoveObject(pdgate, 528.183655, -1906.332764, 6.001883, 0.0000); return 1; } if (strcmp(cmdtext, "/close", true) == 0) { MoveObject(pdgate, 528.183655, -1906.332764, 6.001883, 0.0000); return 1; } return 0; } // END ONPLAYERCOMMANDTEXT //--------END----OF---FILTERSCRIPT--------------------------------------------// Bewerkt: 24 februari 2009 door grasmanek94 Reageren
Recommended Posts
Een reactie plaatsen
Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.