GamerDeMTA Posted June 29, 2013 Share Posted June 29, 2013 Hi. I need help. I need this: How to put the sky color as the maps of zombies? And ALWAYS night? Link to comment
Mefisto_PL Posted June 29, 2013 Share Posted June 29, 2013 Always night you can set locked time in map settings ( map editor ). Link to comment
GamerDeMTA Posted June 29, 2013 Author Share Posted June 29, 2013 It doesn't work... It's as client side (I tried with Server Side too) function s () setSkyGradient (100, 50, 0, 70, 0, 0) end addEventHandler( "onResourceStart", resourceRoot, s ) ****EDIT: u know how to do that when I kill a zombie I get 30$? Link to comment
iPrestege Posted June 30, 2013 Share Posted June 30, 2013 It doesn't work... It's as client side (I tried with Server Side too) function s () setSkyGradient (100, 50, 0, 70, 0, 0) end addEventHandler( "onResourceStart", resourceRoot, s ) ****EDIT: u know how to do that when I kill a zombie I get 30$? onResourceStart > onClientResourceStart Use 'onZombieWasted' Event and givePlayerMoney ! Link to comment
GamerDeMTA Posted June 30, 2013 Author Share Posted June 30, 2013 onZombieWasted is client side or server side Link to comment
GamerDeMTA Posted June 30, 2013 Author Share Posted June 30, 2013 Doesn't work (as server-side) function () givePlayerMoney(source, 100) end addEventHandler("onZombieWasted", source, ) Link to comment
Castillo Posted June 30, 2013 Share Posted June 30, 2013 function ( killer ) givePlayerMoney ( killer, 100 ) end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, ) Link to comment
GamerDeMTA Posted June 30, 2013 Author Share Posted June 30, 2013 but killer isn't defined Link to comment
iPrestege Posted June 30, 2013 Share Posted June 30, 2013 No it's defined from zombie resource. Link to comment
Castillo Posted June 30, 2013 Share Posted June 30, 2013 It's an argument from the event. Link to comment
GamerDeMTA Posted June 30, 2013 Author Share Posted June 30, 2013 Now it works. Thanks. Do you know how to add killmessages for zombies? I mean when a player kills a zombie, it's in the screen *Player [WEAPON] Zombie* Link to comment
Castillo Posted June 30, 2013 Share Posted June 30, 2013 Use the exported function: "outputKillMessage" from "killmessages". Link to comment
GamerDeMTA Posted June 30, 2013 Author Share Posted June 30, 2013 How to use it? Same as outputChatBox? Oh, and it's client-side or server-side? Link to comment
Castillo Posted June 30, 2013 Share Posted June 30, 2013 Is both, client and server side, here is the syntax: outputKillMessage ( killed, wr,wg,wb,killer,kr,kg,kb,weapon,width,resource ) 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