View Single Post
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