Raised This Month: $ Target: $400
 0% 

throw/remove weapons [help]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eim64
New Member
Join Date: Feb 2016
Old 02-14-2016 , 10:25   throw/remove weapons [help]
Reply With Quote #1

im currently making a gun plugin that gives the player some weapons on start, it gives the weapons but spawns new weapons next round. in round_end i have made for lopps that cycles thru all the players inventories, but i dont know how to make the player throw or just delete the weapons.
this is my code:
PHP Code:
for(new 050a++){
                new 
weapon GetPlayerWeaponSlot(ia);
                if (
IsValidEntity(weapon))
                {
                    
decl String:weapon_name[32];
                    
GetEntityClassname(weaponweapon_name32);
                    new 
String:stri[32];
                    
IntToString(a,stri,32);
                    
PrintToServer(stri);
                    
PrintToServer(weapon_name);
                }
        
                
            } 
eim64 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode