Raised This Month: $ Target: $400
 0% 

[HELP]amx_banip #userid does not work.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Metanabol
Member
Join Date: Feb 2009
Old 03-19-2009 , 10:50   [HELP]amx_banip #userid does not work.
Reply With Quote #1

Hello, im trying to fix some bugs with voteban, because i want to make baning player with amx_banip #userid but then i try, it says what user not found...
Bug of banning with amx bans amx_banip name is when my name is one letter like: A, B or AB, other player sometimes has equal letters in they nicks. so i prefer banning with userid, who's different

PHP Code:
public ActualBan(Selected)

    new 
banned1 get_user_userid(gi_Sellection//getting variable "banned player userid :)"
    
already //some bug fix with vote system, dont care
    
new Type get_pcvar_num(gi_BanType//ban type: all same, because i dont use other :)
    
switch(Type)
    {
        case 
1:
        
server_cmd("amx_banip #%s %s %s"banned1get_pcvar_num(gi_BanTime), get_pcvar_num(gi_Reason))
        case 
2:
        
server_cmd("amx_banip #%s %s %s"banned1get_pcvar_num(gi_BanTime), get_pcvar_num(gi_Reason))
        default:
        
server_cmd("amx_banip #%s %s %s"banned1get_pcvar_num(gi_BanTime), get_pcvar_num(gi_Reason))
    }
    return 


Whats the problem? I cant understand :/
Metanabol 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 08:53.


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