Raised This Month: $ Target: $400
 0% 

How to get all the player a weapon?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doggg
Member
Join Date: Jun 2018
Old 07-10-2019 , 12:21   How to get all the player a weapon?
Reply With Quote #1

Hey, I want to make a command thats giving every client in the server deagle with one bullet. i have 0 idea how to begin this code, i looked at the api but didnt really get it (what is the deagle id?, how to set ammo to one bullet?)
i did this far :
i thought to do a for loop that will run through all players in the server and set it for them, but i have no idea how to get the players in server, and what should i do in the for. i mean like client[i]? idk..
Code:
public Action deagle(int client, int args)
{
	
  EquipPlayerWeapon(client,"CSWeapon_DEAGLE");
  
}

Last edited by Doggg; 07-10-2019 at 12:23.
Doggg 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 10:11.


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