Jump to content

Hunter_sky


Arsilex

Recommended Posts

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

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

-- 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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...