02.02.2010, 08:04
How do i edit the weapon ID's ? Because it spams the chat if somebody is running around with a RPG (The normal one) And that weapon is used in my gamemode, what lines do i have to edit to set so the RPG is a "okay" weapon.
pawn Code:
new x_wep, xamm;
GetPlayerWeaponData(i, 7, x_wep, xamm);
if(x_wep > 0 && xamm > 0)
{
GetPlayerName(i, kickname, sizeof(kickname));
format(kstring, 128, "[Warning] (%d)%s was found having an unscripted weapon! (%d)",i,kickname,x_wep);
AdministratorMessage(COLOR_RED,kstring,1);
HackLog(kstring);
printf("%s", kstring);
}
GetPlayerWeaponData(i, 8, x_wep, xamm);
if(x_wep == 16 && xamm > 0)
{
GetPlayerName(i, kickname, sizeof(kickname));
format(kstring, 128, "AdmWarning: [%d]%s was found having an unscripted weapon! (%d)",i,kickname,x_wep);
AdministratorMessage(COLOR_RED,kstring,1);
HackLog(kstring);
printf("%s", kstring);