30.07.2010, 23:26
pawn Код:
if(IsPlayerConnected(playerid))
{
if(IsSpawned[playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:angle;
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
if((floatround(angle) == floatround(LastA[playerid])+180) || (floatround(angle) == floatround(LastA[playerid])-180))
{
new string[128];
format(string,sizeof(string),"*SERVER KICK:%s[%d] Has Been Kicked From The Server Reason: Cheats Detected",Playername(playerid),playerid);
SendClientMessageToAll(PINK,string);
Kick(playerid);
}
LastA[playerid] = angle;
}
}
}
pawn Код:
LastA[playerid] = angle;