Raised This Month: $ Target: $400
 0% 

JCTF + GunGame


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 12-25-2014 , 09:41   Re: JCTF + GunGame
Reply With Quote #7

PHP Code:
/* id = player index who captured the enemy (iFlagTeam) flag */ 
            
new name[32]
            
get_user_name(idname31)
            if(
iFlagTeam == 2)
                {
                new 
cmd[129]
                
format(cmd,128"amx_gungame_level %s +1"name);
                
server_cmd(cmd);} 
As you can see, I'm converting the index into player name and then using that in the GunGame plugin command, but the issue is that, if there is a space in your name, then command takes it as 2 arguments, as opposed to 1.
Spirit_12 is offline
 



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 15:26.


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