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");
}