В OnPlayerUpdate
- Код:
new animlib[30], animname[30];
if(!IsPlayerInAnyVehicle(playerid))
{
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
if(strcmp(animlib, "PED", true) == 0 && strcmp(animname, "RUN_PLAYER", true) == 0 && GetPlayerSkin(playerid) != 0)
{
Kick(playerid);//кикаем игрока
}
}