Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: A7Xsniper on June 08, 2011, 02:56:31 am
-
the tittle says it all i need anti-minigun please help me...
its for pawn
-
Kicks the player for using a minigun.
[pawn]
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 33)
{
new szMsg[76], name[24];
GetPlayerName(killerid, name, sizeof(name));
format(szMsg, sizeof(szMsg), "[Auto-Kick] Kicking %s for using a minigun.", name);
SendClientMessageToAll(0xFFFF00AA, szMsg);
Kick(killerid);
return 1;
}
}
[/pawn]
You can replace Kick(killerid) with Ban(killerid) to ban them. Then you have to change the format() message so it says Banning instead of Kicking.
-
can with a settimer() ??? ???
-
There's no way for a server to see if someone has a minigun, at least until 0.4.