Jump to content

[help] kikar player when hitting the ped


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...