totti Posted January 27, 2013 Share Posted January 27, 2013 i made a gui in my server by gui editor and i wanna make it appears autumaticaly when player dies... Link to comment
toptional Posted January 27, 2013 Share Posted January 27, 2013 i made a gui in my server by gui editor and i wanna make it appears autumaticaly when player dies... Give us the code so we can help you Link to comment
totti Posted January 27, 2013 Author Share Posted January 27, 2013 u mean the code of the gui???i mean i use which function and if u can give me some of beginning will be so pleased Link to comment
MR.S3D Posted January 27, 2013 Share Posted January 27, 2013 use this Event [url=https://wiki.multitheftauto.com/wiki/OnClientPlayerWasted]https://wiki.multitheftauto.com/wiki/OnC ... ayerWasted[/url] Link to comment
totti Posted January 27, 2013 Author Share Posted January 27, 2013 other thing how can i make when i press on a button on this gui the player go to spawn screen or othe button make him go to hospital??? Link to comment
manve1 Posted January 27, 2013 Share Posted January 27, 2013 use event name called: onClientGUIClick --or onClientGUIDoubleClick Link to comment
totti Posted January 27, 2013 Author Share Posted January 27, 2013 ty guys if u can give me the beginning i will be pleased Link to comment
Lloyd Logan Posted January 27, 2013 Share Posted January 27, 2013 ty guys if u can give me the beginning i will be pleased Considering you haven't given us the code... spawnButton = guiCreateButton(etc) addEventHandler("onClientGUIClick", spawnButton, spawnHosp) function spawnHosp( thePlayer ) setElementPostition( thePlayer, co-ordinate x, co-orinate y, co-ordinate z ) end 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