Raised This Month: $ Target: $400
 0% 

give_item to all players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-19-2010 , 10:38   Re: give_item to all players
Reply With Quote #1

Basically when a native doesn't support index 0 as all players, you make a loop:
Code:
new players[32], count; get_players(players, count, "a");   for (new i; i < count; i++)         give_item(players[i], "weapon_m4a1");
This will go through all alive players and give them M4A1.
__________________
hleV is offline
m_pro_m
Junior Member
Join Date: Nov 2010
Old 11-19-2010 , 11:01   Re: give_item to all players
Reply With Quote #2

Thank YOU !

It was helpful
m_pro_m is offline
Reply



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 11:18.


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