Player::kick: Difference between revisions
No edit summary |
(→Syntax) |
||
| Line 4: | Line 4: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
player.kick(String reason); | player.kick(String reason); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Example== | ==Example== | ||
Revision as of 16:31, 4 January 2017
This function kicks a player.
Syntax
player.kick(String reason);
Example
mp.events.add(
{
"playerDeath" : (player, reason, killer) =>
{
if(killer)
killer.kick("hack1!11");
}
});