Raised This Month: $ Target: $400
 0% 

Make a menu that shows up names


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 02-19-2005 , 10:52  
Reply With Quote #7

It should print the name of the player you chose..

To make it change a players team, you would edit this function:

Code:
public MenuCommand( id, key ) {     switch( key )     {         case 8: PlayerMenu( id, ++g_nMenuPosition[id] )         case 9: PlayerMenu( id, --g_nMenuPosition[id] )         default:         {             // This is the Chosen Player Index             new iIndex = g_nMenuPosition[id] * MAX_DISPLAY + key             // Get the Chosen Players Name             new szUsername[32]             get_user_name( iIndex, szUsername, 31 )             // Print Username to Admin who called Menu             client_print( id, print_chat, "You Selected: %s", szUsername )         }     }     return PLUGIN_HANDLED }

Where iIndex is the ID of the chosen player...

Now, you want the player to be changed to a different team?? Which team?? Are you gonna pick the team for them, or just put them on opposite team?
xeroblood is offline
Send a message via MSN to xeroblood
 



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 19:28.


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