Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///---OnPlayerReloading(playerid, weaponid, ammo);---///
- //Release 3
- /*by*/
- // ////// //
- // /// // /////
- // /// // // //
- ////// ////// ////// /////
- /*-------------------------------------------------------*/
- #include <a_samp>
- #tryinclude <foreach>
- #if defined OPRL
- #endinput
- #endif
- #define OPRL
- forward OnPlayerReloading(playerid, weaponid, ammo);
- public OnPlayerUpdate(playerid)
- {
- if(GetPlayerWeaponState(playerid) == 3)//WEAPONSTATE_RELOADING
- {
- new iWeaponid = GetPlayerWeapon(playerid);
- new iAmmo = GetPlayerAmmo(playerid);
- CallLocalFunction("OnPlayerReloading", "idd", playerid, iWeaponid, iAmmo);
- }
- if(funcidx("OnPlayerUpdate")) return CallRemoteFunction("OnPlayerUpdate", "i", playerid);
- return 1;
- }
- #if defined _ALS_OnPlayerUpdate
- #undef OnPlayerUpdate
- #else
- #define _ALS_OnPlayerUpdate
- #endif
- #define OnPlayerUpdate lzloreload_OnPlayerUpdate
- forward lzloreload_OnPlayerUpdate(playerid);
- ///---OnPlayerReloading(playerid, weaponid, ammo);---///
- //Release 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement