Quote from: Nihongo^ on Jul 26, 2023, 06:37 PMHow do i restrict /skin when player fall down (player on ground after getting hit with weapon ) ?
Most of players in my server do evade with /skin <id>. It immediately change the skin and player get up on exact moment
i made this one but it works only for 1 second and after that player can use skin ( it take around 4/5 seconds for the player to get up properly and run )Code Selectif (cmd == "skin") {
if (player.Action == 42) {
MessagePlayer("You cannot use /skin while on the ground.", player);
return;
}
}
Code Select
if (cmd == "skin") {
if (player.Action == 42 || player.Action == 43) {
MessagePlayer("You cannot use /skin while on the ground.", player);
return;
}
}
Simple