Raised This Month: $ Target: $400
 0% 

Get info


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-23-2013 , 09:41   Get info
Reply With Quote #1

Can i some how get tempid in my task???
set_task( 10.0, "SawSlay")

Code:
public SawGame ( iPlayer ) 
{ 
new SawMenu = menu_create ( "\r[\ySWE-KUNG\r]\w Saw Menu:^n\rBy SnusMumrikeN", "SawGame_Handle" ) 
new num, players[32], tempid, szTempID [ 10 ], tempname [ 32 ] 
get_players ( players, num, "a" ) 
for ( new i = 0; i < num; i++ ) 
{ 
tempid = players [ i ] 
if ( cs_get_user_team ( tempid ) != CS_TEAM_T ) 
continue 
get_user_name ( tempid, tempname, 31 ) 
num_to_str ( tempid, szTempID, 9 ) 
menu_additem ( SawMenu, tempname, szTempID, 0 ) 
} 
menu_display ( iPlayer, SawMenu ) 
set_task( 10.0, "SawSlay")                           // TASK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
return PLUGIN_HANDLED 
} 
public SawGame_Handle ( iPlayer, menu, item, id ) 
{ 
g_iCurrentGame = GAME_SAW
if ( item == MENU_EXIT ) 
{ 
menu_destroy ( menu ) 
return PLUGIN_HANDLED; 
} 
new data [ 8 ], iName [ 64 ] 
new access, callback 
menu_item_getinfo ( menu, item, access, data,7, iName, 63, callback ) 
new tempid = str_to_num ( data ) 
new tempname [ 32 ]
get_user_name ( tempid, tempname, 31 )
 
 
menu_destroy(menu); 
return PLUGIN_HANDLED; 
}
public SawSlay (id) 
{ 
 
  }
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 01-23-2013 at 09:41.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
 


Thread Tools
Display Modes

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 20:40.


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