04.12.2011, 18:32
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32],animname[32],acstring[128], acxstring[128], acname[MAX_PLAYER_NAME];
GetPlayerName(playerid, acname, sizeof(acname));
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, 32, animname, 32);
if(strcmp(animlib, "PED", true) == 0)
{
if(strcmp(animname, "RUN_PLAYER", true) == 0 && UserStats[playerid][Admin] <= 0)
{
format(acxstring, 128, "Player %s[%d] has been banned for use of ******", acname, playerid);
SendClientMessageToAll(RED, acstring);
BanEx(playerid, "CJ Run");
}
}
}
return 1;
}