Posts: 3,351
Threads: 780
Joined: Jan 2010
Hi all,i need litlle help.
I need a code that ban automatically the user that use minigun.
Exapmle: I use cheats and i get minigun,then i got banned.
Thanks
Posts: 9
Threads: 2
Joined: Aug 2010
Reputation:
0
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN)
{
SendClientMessage(playerid,0xFF5A00FF,"You where kicked by the system.Reason:Minigun");
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s where kicked by the system.Reason: Minigun ", pName);
SendClientMessageToAll(0xFF5A00FF, string);
Kick(playerid);
return 0;
}
I think that looks better in your script
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Not when you lack of 21 cells in your string.
Posts: 341
Threads: 18
Joined: Apr 2010
Reputation:
0
You can also use JunkBuster Anti-Cheat is a very good one :X
Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by Mauzen
You can use OnPlayerUpdate for this, it will ban him instantly and accurate then.
Add this there:
pawn Код:
if(GetPlayerWeapon(playerid) == 38) ban(playerid); //Will ban the player if he has a minigun as current weapon
|
Thanks.
How to add the message like "PLAYERNAME has been banned for Minigun" ?