Posts: 2,938
Threads: 162
Joined: May 2010
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;
}
}
}
tag mismatch on
Posts: 2,938
Threads: 162
Joined: May 2010
i'll use that as an alternative. if i dont get any answers
anyone esle?
new LastA[MAX_PLAYERS];
pawn Код:
public OnPlayerUpdate(playerid)
{
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;
}
}
}
return 1;
}
dont tell me about onplayerupdate, i dont give a ..
Posts: 1,741
Threads: 44
Joined: Apr 2010
Reputation:
0
i'll make a compiled version of your script with new LastA[MAX_PLAYERS] after im dont with this one.
Posts: 2,938
Threads: 162
Joined: May 2010
okay thx camel btw did u lose ur msn or something xD