// Native Silver Licence. public native_silver_license( plugin_id, num_params ) {
// Get Player ID new plr = get_param( 1 )
// If Player Is Not Connected. if (!is_user_connected( plr )) {
// Log The Error Message. log_error( AMX_ERR_NATIVE, "[Licence] Invalid Player (%d)", plr ) return -1 }
// Return If He Has Or If He Has No. return flag_get_boolean( _bitSilverLicence, plr ) }
// Native Golden Licence. public native_golden_license( plugin_id, num_params ) {
// Get Player ID new plr = get_param( 1 )
// If Player Is Not Connected. if (!is_user_connected( plr )) {
// Log The Error Message. log_error( AMX_ERR_NATIVE, "[Licence] Invalid Player (%d)", plr ) return -1 }
// Return If He Has Or If He Has No. return flag_get_boolean( _bitGoldenLicence, plr ) }
Improvements i did and you can copy and see.
* Useing Bits.
* Removed Amxmisc.
* Added define for setting cost.
* I wrote so you can see everything
It was fast i think i didn't made any mistakes.
Suggestions For Your Code:
* Use Bits.
* Look At The Code I Gave You.
* Add (Admin Licence) (Premium Licence) Not Only ShotGun And So On...
* You Can Add (Golden Licence || Silver Licence)
* Show People How They Can Set Checks.
(If I get Any More Suggestions I Will Tell You X)