Narutimmy Posted April 3, 2014 Posted April 3, 2014 hola bueno quise poner armas a un auto el problema es que "createWeapon" lo ise en cliente y funciona el problema es que si por ejemplo estoy solo mata zombies y demas, o explota autos, pero si ahi alguien mas con migo (Multijugador) no hace daño, incluso la otra persona no ve las armas: Cliente: function crgun (p) if (getElementModel( source ) == 490 ) then w = createWeapon ( "minigun", 0, 0, 0 ) w2 = createWeapon ( "minigun", 0, 0, 0 ) w3 = createWeapon ( "minigun", 0, 0, 0 ) w4 = createWeapon ( "minigun", 0, 0, 0 ) setElementAlpha(w,0) setElementAlpha(w2,0) setElementAlpha(w3,0) setElementAlpha(w4,0) --- setWeaponAmmo( w, 999999999999999 ) attachElements ( w, source, -1, 1.5, 1, 0, 0, 90) attachElements ( w2, source, -1, 1.5, -0.5, 0, 0, 90) attachElements ( w3, source, 1, 1.5, -0.5, 0, 0, 90) attachElements ( w4, source, 1, 1.5, 1, 0, 0, 90) end end addEventHandler("onClientVehicleEnter", getRootElement(), crgun) mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Tomas Posted April 3, 2014 Posted April 3, 2014 Me explicas que querés hacer? Currently developing for International Gaming Community - Join us!
Narutimmy Posted April 3, 2014 Author Posted April 3, 2014 Me explicas que querés hacer? Facil al subir al auto se crean una armas que se pegan al auto, con una tecla ago que disparen todo bien pero necesito hacerlo server no client mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Tomas Posted April 3, 2014 Posted April 3, 2014 Con un mensaje me daba e.e 1. No puedes attachear un arma. https://wiki.multitheftauto.com/wiki/AttachElements 2. Que problema hay? Todos son C-Side y S-Side ? Currently developing for International Gaming Community - Join us!
Recommended Posts