NodZen Posted June 7, 2012 Share Posted June 7, 2012 Hola amigo , miren necesito saber como puedo hacer una ventana de Spawn , asi como tiene el gamemode "Stealh"... Me puede decir que funciones necesito o porfavor pasenme un ejemplo ,asi yo lo edito a mi necesidad.... Gracias Link to comment
Alexs Posted June 7, 2012 Share Posted June 7, 2012 triggerServerEvent --Para trigger el spawn spawnPlayer --el Spawn OnClientGUIClick --El evento del boton https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#GUI_functions Link to comment
NodZen Posted June 7, 2012 Author Share Posted June 7, 2012 triggerServerEvent --Para trigger el spawn spawnPlayer --el Spawn OnClientGUIClick --El evento del boton https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#GUI_functions No tendrias un ejemplo? Link to comment
Alexs Posted June 7, 2012 Share Posted June 7, 2012 uff.. a ver: Server Side: function spawn ( ) spawnPlayer ( thePlayer, 0.0, 0.0, 0.0) end addEvent( "alspawn", true ) addEventHandler( "alspawn", getLocalPlayer(), spawn ) Client Side: function spawnc ( ) if source == Botonspawn then triggerServerEvent ( "alspawn", getLocalPlayer() ) end end addEventHandler ( "onClientGUIClick", Botonspawn, spawnc) Quiza me equivoco, no se mucho del uso de Trigger Link to comment
iFoReX Posted June 7, 2012 Share Posted June 7, 2012 alexs para que especificar el boton 2 veces ? Link to comment
Recommended Posts