Arsilex Posted February 5, 2012 Share Posted February 5, 2012 Miren eh creado esto y queria saber si esta todo bien y si con eso solo se le cambia el sky al (player) outputChatBox('#E26161[sCRIPT]: #FFFFFFHunter Sky por #0000FF|eF|#000000*Asus^ #FFFFFFpara #FF9305|RG|Server Racing', getRootElement(), 255, 100, 100, true) function someoneReachedHunter(player,number, sort, model) if player == "vehiclechange" and model == 425 then setSkyGradient(0,0,0,0,0,0) (player) setWaterColor(0,206,209, 255) (player) outputChatBox('#E26161[HUNTER]:Hunter Has Reached Sky Change!', getRootElement(), 255, 100, 100, true) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter) Link to comment
ghost050 Posted February 5, 2012 Share Posted February 5, 2012 (edited) EDIT:No dije nada Edited February 5, 2012 by Guest Link to comment
Castillo Posted February 5, 2012 Share Posted February 5, 2012 Esta mal. outputChatBox('#E26161[sCRIPT]: #FFFFFFHunter Sky por #0000FF|eF|#000000*Asus^ #FFFFFFpara #FF9305|RG|Server Racing', getRootElement(), 255, 100, 100, true) function someoneReachedHunter(number, sort, model) if (sort == "vehiclechange" and model == 425) then setSkyGradient(0,0,0,0,0,0) setWaterColor(0,206,209, 255) outputChatBox('#E26161[HUNTER]:Hunter Has Reached Sky Change!', root, 255, 100, 100, true) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter) Link to comment
Arsilex Posted February 5, 2012 Author Share Posted February 5, 2012 ya pero ese ya lo tengo yo lo que pretendo que el sky se le cambie solo a la persona que cojio el hunter! Link to comment
Castillo Posted February 5, 2012 Share Posted February 5, 2012 -- client side: addEvent("setSkyColor",true) addEventHandler("setSkyColor",root, function () setSkyGradient(0,0,0,0,0,0) setWaterColor(0,206,209, 255) end) -- server side: outputChatBox('#E26161[sCRIPT]: #FFFFFFHunter Sky por #0000FF|eF|#000000*Asus^ #FFFFFFpara #FF9305|RG|Server Racing', getRootElement(), 255, 100, 100, true) function someoneReachedHunter(number, sort, model) if (sort == "vehiclechange" and model == 425) then triggerClientEvent(source,"setSkyColor",source) outputChatBox('#E26161[HUNTER]:Hunter Has Reached Sky Change!', root, 255, 100, 100, true) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter) Link to comment
Recommended Posts