Dranos Posted October 3, 2014 Share Posted October 3, 2014 Vreau si eu scriptul cu spawn bike , vreau doar 1 pe cont sa fie , si sa respawneze cand dai respawn la toate masinile . Va multumesc. Link to comment
crismar Posted October 3, 2014 Share Posted October 3, 2014 Care script cu spawn bike ? Ce vrei pt. doar 1 cont ? Fii mai explicit. Link to comment
Dranos Posted October 4, 2014 Author Share Posted October 4, 2014 Scuze, adica sa nu faci spawn de bike sati iei doar cate una daca dai iar pe spawn sa se stearga prima. Link to comment
crismar Posted October 4, 2014 Share Posted October 4, 2014 function hasBikeSpawned(thePlayer) if getElementData(thePlayer, "bikeSpawned") then return true else return false end end function gimmeTheBike(thePlayer) if hasBikeSpawned(thePlayer) then destroyElement(getElementData(thePlayer, "bikeSpawned")) local veh = createVehicle(411, getElementPosition(thePlayer)) warpPedIntoVehicle(thePlayer, veh) setElementDAta(thePlayer, "bikeSpawned", veh) else local veh = createVehicle(411, getElementPosition(thePlayer)) warpPedIntoVehicle(thePlayer, veh) setElementDAta(thePlayer, "bikeSpawned", veh) end end Comanda o pui tu singur pe functie si modifica ID'ul pt ca eu nu stiu IDurile pe derost. ID 411 = Infernus. Link to comment
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