Matty Posted August 30, 2012 Share Posted August 30, 2012 Buenas... Alguien me podría decir cual es el formato correcto para desactivar el evento "onPlayerChat" ? Desde ya gracias. Link to comment
Arsilex Posted August 30, 2012 Share Posted August 30, 2012 function startChat ( theplayer ) cancelEvent () end addEventHandler ( "onPlayerChat", huntedPlayer, startChat ) Link to comment
BorderLine Posted August 30, 2012 Share Posted August 30, 2012 function nochat() cancelEvent() end addEventHandler("onPlayerChat",getRootElement(),nochat) Link to comment
Arsilex Posted August 30, 2012 Share Posted August 30, 2012 es lo mismo que puse yo osea sirven las dos cosas Link to comment
BorderLine Posted August 30, 2012 Share Posted August 30, 2012 huntedPlayer? de donde sakaste eso? Link to comment
Castillo Posted August 30, 2012 Share Posted August 30, 2012 No funcionaria con 'huntedPlayer' porque no esta definido en ninguna parte. Link to comment
Arsilex Posted August 30, 2012 Share Posted August 30, 2012 me estas diciendo que esto es la wiki esta mal? -- call 'stopVehicleEntry' whenever hunterPlayer is about to enter a vehicle: function stopVehicleEntry ( theplayer, seat, jacked ) cancelEvent () -- stop the event from occuring end addEventHandler ( "onVehicleStartEnter", huntedPlayer, stopVehicleEntry ) Link to comment
BorderLine Posted August 30, 2012 Share Posted August 30, 2012 ese es el codigo completo? seguro mas atras esta definido Link to comment
Arsilex Posted August 30, 2012 Share Posted August 30, 2012 mira lo tu mismo https://wiki.multitheftauto.com/wiki/CancelEvent Link to comment
Castillo Posted August 30, 2012 Share Posted August 30, 2012 me estas diciendo que esto es la wiki esta mal? -- call 'stopVehicleEntry' whenever hunterPlayer is about to enter a vehicle: function stopVehicleEntry ( theplayer, seat, jacked ) cancelEvent () -- stop the event from occuring end addEventHandler ( "onVehicleStartEnter", huntedPlayer, stopVehicleEntry ) Por lo que veo, el ejemplo esta incompleto, asi que si, esta mal. Link to comment
Arsilex Posted August 30, 2012 Share Posted August 30, 2012 pos valla:S PD: Lo pase a español https://wiki.multitheftauto.com/wiki/ES/cancelEvent Link to comment
Castillo Posted August 30, 2012 Share Posted August 30, 2012 El evento: "onPlayerWeaponFire" no existe. Link to comment
Arsilex Posted August 30, 2012 Share Posted August 30, 2012 NO Pues ese evento lo usa en el paintball e.e voy a editarlo sorry por no saberlo es que use el primero que vi Link to comment
Recommended Posts