Jeferson15 Posted March 2, 2020 Share Posted March 2, 2020 When the player hits the ped he is automatically kiked can you do that? function skins() Personagem01 = createPed (79, 2508.1,-1732.5,-16.229181289673) setPedRotation(Personagem01, 270) setTimer (setElementFrozen, 100, 1, Personagem01, true) setTimer(setPedAnimation, 100, 1, Personagem01, "bar", "dnk_stndM_loop",-1,true,false,false) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), skins) Link to comment
Moderators Patrick Posted March 2, 2020 Moderators Share Posted March 2, 2020 Ofc, we can do that, but we don't do that instead of you. Some thing what need to do it: https://wiki.multitheftauto.com/wiki/OnClientPedDamage https://wiki.multitheftauto.com/wiki/TriggerServerEvent https://wiki.multitheftauto.com/wiki/KickPlayer Logic: - On client side, check ped hits. - If someone hit the ped, trigger a server sided function (because kickPlayer a server sided function). - And this server sided function kick the player. Some help: 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