Give all players items
#1

Hi, is it possible to give with a CMD all players the exact same weapon that i define in the script?


Thanks

-Luckie12
Reply
#2

Loop.

You can use foreach (****** if you want to link) made by ******
Or you can just use this:
pawn Код:
for(new i; i != MAX_PLAYERS; i++)
{
    // Use i instead of player id here.
}
Reply
#3

Thanks! is it also possible to reset the weapons i gave them, but not the ones they bought themself...

Код:
public HuntCount(playerid)
{
	SendClientMessageToAll(COLOR_WHITE, "DM is off!");
	GameTextForAll("DM is off!", 1, 0);
    KillTimer(Hunttimer[playerid]);
	for(new i; i != MAX_PLAYERS; i++)
		{
		ResetPlayerWeapons(i);
		}
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)