17.02.2009, 07:23
Код:
stock DoesPlayerHaveAnyWeapons_OMG_thats_a_long_name_for_a_Freakn_function(playerid) { new ammo,weapon; for(new slot=0; slot<12; slot++) // Assuming that there are only 12 weapon slots (cuz now I don't remember the real count) { GetPlayerWeaponData(playerid,slot,ammo,weapon); if(ammo || weapon) return true; //ZOMFG >_> we found one. } return false; // Nope.. he's clean. }