22.01.2013, 09:48
Here is a simple stock to detect the weapon model
You can use the stock in OnPlayerUpdate
EDIT:If you can't switch to deagle you're server must have a anti deagle driveby.
pawn Код:
stock GetWeaponModel(weaponid)
{
switch(weaponid)
{
case 1:
return 331;
case 9:
return 341;
case 10..15:
return weaponid+311;
case 16..18:
return weaponid+326;
case 22..29:
return weaponid+324;
case 30,31:
return weaponid+325;
case 32:
return 372;
case 33..45:
return weaponid+324;
case 46:
return 371;
}
return 0;
}
EDIT:If you can't switch to deagle you're server must have a anti deagle driveby.