17.05.2011, 12:08
Guys i need a code that when someone spawn a minigun with hack program wil not spawn the gun and will say "don't try to hack" any help?
OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 38)
{
SendClientMessage(playerid,0xFFFFFFFF,"OMG PLZ NO CHITTING MINIGUNZ");
ResetPlayerWeapons(playerid);
}
}
OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 38)
{
SendClientMessage(playerid,0xFFFFFFFF,"JunkBuster: You have been banned for Minigum Cheating");
Ban(playerid);
}
}
if (IsPlayerInDynamicArea(playerid, Zone) && GetPlayerWeapon(playerid) > 0))
{
SendClientMessage(playerid, COLOR, "You can't use arms in this zone");
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 38)
{
SendClientMessage(playerid, COLOR, "U can't use this arm :B lol");
}
}
return 1;
}