12.08.2011, 17:01
Quote:
Because i want then player was kicked next time then he come to server he will not cheating.
And then he kicked from server reset guns and next time then he come with no cheats he will don't get kick. If I leave in this script just with kick then player come next time with no cheats he again be kicked from the server because he will have weapons. |
if you kick somone then he come back he will not have the weapons he had+if he will have then the server will kick him again.
and Script:
pawn Код:
#include <a_samp>
#define None 0
#define RED 0x667788
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 9 || GetPlayerWeapon(playerid) == 26 || GetPlayerWeapon(playerid) == 35 || GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 18 || GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 44 || GetPlayerWeapon(playerid) == 45)
{
new Name[MAX_PLAYER_NAME];
new str[128];
GetPlayerName(playerid,Name,sizeof(Name));
format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
SendClientMessageToAll(RED,str);
GivePlayerWeapon(playerid, 38, None);
GivePlayerWeapon(playerid, 9, None);
GivePlayerWeapon(playerid, 26, None);
GivePlayerWeapon(playerid, 35, None);
GivePlayerWeapon(playerid, 36, None);
GivePlayerWeapon(playerid, 37, None);
GivePlayerWeapon(playerid, 16, None);
GivePlayerWeapon(playerid, 18, None);
GivePlayerWeapon(playerid, 39, None);
GivePlayerWeapon(playerid, 44, None);
GivePlayerWeapon(playerid, 45, None);
Kick(playerid);
}
return 1;
}
pawn Код:
#include <a_samp>
#define RED 0x667788
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 9 || GetPlayerWeapon(playerid) == 26 || GetPlayerWeapon(playerid) == 35 || GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 18 || GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 44 || GetPlayerWeapon(playerid) == 45)
{
new Name[MAX_PLAYER_NAME];
new str[128];
GetPlayerName(playerid,Name,sizeof(Name));
format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
SendClientMessageToAll(RED,str);
ResetPlayerWeapons(playerid);
Kick(playerid);
}
return 1;
}