Raised This Month: $ Target: $400
 0% 

Random options......


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-19-2006 , 22:06  
Reply With Quote #9

Quote:
Originally Posted by organizedKaoS
Quote:
Originally Posted by VEN
Better put to the global array exact weapon names.
Then your func would be:
Code:
public func(id) {             new i = random(MAX_WEAPONS)             give_item(id , g_szWeaps[i])             ammo_up(id)             client_print( id, print_chat, "[WPN] Gave : %s", g_szWeaps[i][7] ) }
That didnt seem to work for me...but this
Code:
public func(id) {     new j = random_num( 0, MAX_WEAPONS - 1 )     for( new i = 0; i < MAX_WEAPONS; i++ ) {                     if ( i == j ) {             new weap[25]             format(weap , 24 , "weapon_%s" , g_szWeaps[i])             give_item(id , weap)             ammo_up(id)             client_print( id, print_chat, "[WPN] Gave : %s", g_szWeaps[i] )         }
did and yeah :lol: .....Thanks everyone who helped in here :lol: :lol: :lol:
Just use VEN's but change it to

Code:
public func(id) {             new i = random(MAX_WEAPONS)             new weap[25]             format(weap , 24 , "weapon_%s" , g_szWeaps[i])             give_item(id , g_szWeaps[i])             ammo_up(id)             client_print( id, print_chat, "[WPN] Gave : %s", g_szWeaps[i]) }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
 



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 16:36.


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