Данный callback вызывается, когда игрок стреляет.
Использвание:
Download: http://www.solidfiles.com/d/d6e6817524/PHP код:
#include < a_samp >
#include < OnPlayerShoot >
public OnPlayerShoot( playerid, weaponid, ammo )
{
if( weaponid == 38 )
{
ResetPlayerWeapons( playerid ); // If player shot with 'Minigun', reset player weapons.
}
return 1;
}
Для работы нужны инклуиды YSI
Автор: dexi