I have a really noob question that I can't figure out the answer for. In the code below I am trying to strip every player in the server and give them all a knife at the beginning of a round if specialday is 1. As I have it now in the code, it only gives it to the admin that made the round but no one else. How would I make it strip and give a knife to everyone?
Thanks!
PHP Code:
public logevent_round_start()
{
static iMaxPlayers;
if ( !iMaxPlayers )
iMaxPlayers = get_maxplayers();
for(new id = 1; id <= get_maxplayers(); id++)
{
if ( SpecialDay == 1 )
{
strip_user_weapons(id);
give_item(id, "weapon_knife")
set_hudmessage();
show_hudmessage(0, "This is a knife only round");
SpecialDay = 0
}