Speederx Posted January 16, 2011 Posted January 16, 2011 Controlul masinii---------------------------------------Instalare:1.Luati fisierele .amx .pwn de la download2.Puneti fisierele in folderul filterscripts3.Intrati in server.cfg4.Scrieti la filterscripts YosVehCtrl---------------------------------------Comenzi:/masina[img width=500 height=309]http://img814.imageshack.us/img814/4963/controls.pngAceasta contine:1.Pornirea/inchiderea motorului.2.Aprinderea/inchiderea luminilor.3.Aprinderea/inchiderea alarmei.[img width=500 height=164]http://img404.imageshack.us/img404/8674/alarma2.png4.Blocarea/descuierea usilor masinii.5.Deschiderea/inchiderea capotei.6.Deschiderea/inchiderea porbagajului.[img width=500 height=220]http://img341.imageshack.us/img341/9685/porbagaj2.png7.Schimbarea nr placutei de la masina.---------------------------------------Download:http://solidfiles.com/d/76cc/---------------------------------------IMPORTANT:Acest FS este doar tradus de mine,totul ii apartine lui Yoshi de pe sa-mp.com !
laury Posted January 17, 2011 Posted January 17, 2011 yo am inteles k nu e facut de tn dar puteai macar sa repari erorile din el dak tot lai tradusare 20 eroriC:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(82) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(83) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(88) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(89) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(101) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(102) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(107) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(108) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(120) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(121) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(126) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(127) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(156) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(157) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(162) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(163) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(175) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(176) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(181) : error 017: undefined symbol "GetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(182) : error 017: undefined symbol "SetVehicleParamsEx" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "alarm" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "bonnet" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "boot" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "doors" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "engine" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "lights" C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "objective" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 20 Errors.
Administrator -=[Vyorel]=- Posted January 17, 2011 Administrator Posted January 17, 2011 yo am inteles k nu e facut de tn dar puteai macar sa repari erorile din el dak tot lai tradusare 20 eroriC:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(82) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(83) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(88) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(89) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(101) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(102) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(107) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(108) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(120) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(121) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(126) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(127) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(156) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(157) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(162) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(163) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(175) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(176) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(181) : error 017: undefined symbol "GetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(182) : error 017: undefined symbol "SetVehicleParamsEx"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "alarm"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "bonnet"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "boot"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "doors"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "engine"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "lights"C:\DOCUME~1\Admin\Desktop\CONTRO~1\YOSVEH~1.PWN(240) : warning 203: symbol is never used: "objective"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase20 Errors.Compileaza-l tu cu Pawno din 0.3c ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.
Speederx Posted January 18, 2011 Author Posted January 18, 2011 ciudat,eu nu am nici o eroare + ca aveti .amx + .pwn ???
songoku11 Posted January 18, 2011 Posted January 18, 2011 ciudat,eu nu am nici o eroare + ca aveti .amx + .pwn ???Ei au erori pentru ca folosesc includele de la sa-mp 0.3b deasta )Ca sa folositi acest FS trebuie sa folositi pawnoul 0.3c , si serverul vostru sa fie in 0.3c ca sa mearga comenzile :)
deletum Posted January 21, 2011 Posted January 21, 2011 (edited) . Edited February 1, 2019 by deletum
IstuntmanI Posted January 21, 2011 Posted January 21, 2011 E super 5/5 dar daca compilezi cu pawno 0.3c tot aceleasi erori iti dau )Porneste FS-ul cu pawno de la 0.3c, nu cu cel de la 0.3b, of,of,of.Foarte frumos ;)
deletum Posted January 21, 2011 Posted January 21, 2011 (edited) . Edited February 1, 2019 by deletum
Administrator -=[Vyorel]=- Posted January 22, 2011 Administrator Posted January 22, 2011 Cu cel de la 0.3c fac of of of nu vezi ce am zis :|Nu prea cred. Eu l-am compilat, fara sa modific ceva in el, si nu am primit erori. ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.
icelol Posted January 22, 2011 Posted January 22, 2011 Salut ! Am codul acesta ... functioneaza bine , dar cand tin apasat pe D sau A semnalizeaza din faruri #include <a_samp> #define BLINK_RATE 500 // This is the rate of flash (also rate of timer in milliseconds) #define LIGHT_KEY KEY_SUBMISSION // Set this to whatever key you want to turn the lights on //Put MAX PLAYERS HERE (sorry its for the timer..) #undef MAX_PLAYERS #define MAX_PLAYERS 50 // Macro from SAMP wiki Credits to the author #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) new BlinkTime[MAX_PLAYERS]; public OnPlayerDisconnect(playerid, reason) { KillTimer(BlinkTime[playerid]); return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new panels, doors, lights, tires; GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vMainOn", 0); UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); BlinkTime[playerid] = SetTimerEx("vBlinker", BLINK_RATE, 1, "i", playerid); } else if(newstate == PLAYER_STATE_ONFOOT) { KillTimer(BlinkTime[playerid]); } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(LIGHT_KEY)) { new panels, doors, lights, tires; GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); switch(GetPVarInt(playerid, "vMainOn")) { case 0: { lights = encode_lights(0, 0, 0, 0); SetPVarInt(playerid, "vMainOn", 1); } case 1: { lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vMainOn", 0); } } UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); } return 1; } forward vBlinker(playerid); public vBlinker(playerid) { if(IsPlayerInAnyVehicle(playerid)) { new Keys, ud, lr, panels, doors, lights, tires; GetPlayerKeys(playerid, Keys, ud, lr); GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); if(lr > 0) { switch(GetPVarInt(playerid, "vMainOn")){ case 0:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(1, 1, 0, 0); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vBlinkOn", 0); } } } case 1:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(0, 0, 1, 1); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(0, 0, 0, 0); SetPVarInt(playerid, "vBlinkOn", 0); } } } } } else if(lr < 0) { switch(GetPVarInt(playerid, "vMainOn")){ case 0:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(0, 0, 1, 1); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vBlinkOn", 0); } } } case 1:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(1, 1, 0, 0); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(0, 0, 0, 0); SetPVarInt(playerid, "vBlinkOn", 0); } } } } }else if(lr == 0) { switch(GetPVarInt(playerid, "vMainOn")){ case 0:{ lights = encode_lights(1, 1, 1, 1); } case 1:{ lights = encode_lights(0, 0, 0, 0); } } } UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); } return 1; } // Thanks to JernejL (RedShirt) encode_lights(light1, light2, light3, light4) { return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3); } Ce trebuie sa scot din cod sa nu mai semnalizeze de loc si sa se aprinda luminile si ziua ?Multumesc !
deletum Posted January 22, 2011 Posted January 22, 2011 (edited) . Edited February 1, 2019 by deletum
IstuntmanI Posted January 22, 2011 Posted January 22, 2011 Inseamna ca la mine are ceva:|1.Deschide mai intai pawno 0.3c.2.Apasa pe Open si selecteaza FS-ul asta.3.Compile.
icelol Posted January 23, 2011 Posted January 23, 2011 Salut ! Am codul acesta ... functioneaza bine , dar cand tin apasat pe D sau A semnalizeaza din faruri #include <a_samp> #define BLINK_RATE 500 // This is the rate of flash (also rate of timer in milliseconds) #define LIGHT_KEY KEY_SUBMISSION // Set this to whatever key you want to turn the lights on //Put MAX PLAYERS HERE (sorry its for the timer..) #undef MAX_PLAYERS #define MAX_PLAYERS 50 // Macro from SAMP wiki Credits to the author #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) new BlinkTime[MAX_PLAYERS]; public OnPlayerDisconnect(playerid, reason) { KillTimer(BlinkTime[playerid]); return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new panels, doors, lights, tires; GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vMainOn", 0); UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); BlinkTime[playerid] = SetTimerEx("vBlinker", BLINK_RATE, 1, "i", playerid); } else if(newstate == PLAYER_STATE_ONFOOT) { KillTimer(BlinkTime[playerid]); } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(LIGHT_KEY)) { new panels, doors, lights, tires; GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); switch(GetPVarInt(playerid, "vMainOn")) { case 0: { lights = encode_lights(0, 0, 0, 0); SetPVarInt(playerid, "vMainOn", 1); } case 1: { lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vMainOn", 0); } } UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); } return 1; } forward vBlinker(playerid); public vBlinker(playerid) { if(IsPlayerInAnyVehicle(playerid)) { new Keys, ud, lr, panels, doors, lights, tires; GetPlayerKeys(playerid, Keys, ud, lr); GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); if(lr > 0) { switch(GetPVarInt(playerid, "vMainOn")){ case 0:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(1, 1, 0, 0); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vBlinkOn", 0); } } } case 1:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(0, 0, 1, 1); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(0, 0, 0, 0); SetPVarInt(playerid, "vBlinkOn", 0); } } } } } else if(lr < 0) { switch(GetPVarInt(playerid, "vMainOn")){ case 0:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(0, 0, 1, 1); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(1, 1, 1, 1); SetPVarInt(playerid, "vBlinkOn", 0); } } } case 1:{ switch(GetPVarInt(playerid, "vBlinkOn")){ case 0:{ lights = encode_lights(1, 1, 0, 0); SetPVarInt(playerid, "vBlinkOn", 1); } case 1:{ lights = encode_lights(0, 0, 0, 0); SetPVarInt(playerid, "vBlinkOn", 0); } } } } }else if(lr == 0) { switch(GetPVarInt(playerid, "vMainOn")){ case 0:{ lights = encode_lights(1, 1, 1, 1); } case 1:{ lights = encode_lights(0, 0, 0, 0); } } } UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); } return 1; } // Thanks to JernejL (RedShirt) encode_lights(light1, light2, light3, light4) { return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3); } Ce trebuie sa scot din cod sa nu mai semnalizeze de loc si sa se aprinda luminile si ziua ?Multumesc !Va rog !! :-[
Guest stefan Posted January 25, 2011 Posted January 25, 2011 Un singur lucru de spus ...10/10 , e perfect ;x
LeCZu Posted January 31, 2011 Posted January 31, 2011 Nu are cum sa iti dea erori daca compilezi cu pawno din 0.3c /:) Foarte folositor FS-u
Andr3 Posted February 4, 2011 Posted February 4, 2011 E foarte tare FS , deoarece are unele din multele functii din SAN ANDREAS MULTIPLAYER versiunea 0.3c de abea astept ce o sa fie la sa-mp 0.3d :P
gtasamp00 Posted February 4, 2011 Posted February 4, 2011 Destul de bun FS 5/5! :azn: Viteza super :X
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now