Raised This Month: $51 Target: $400
 12% 

Ban a Player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Thew_ConFiger
Member
Join Date: Apr 2019
Old 09-09-2020 , 09:59   Ban a Player
Reply With Quote #1

Greetings . how i can ban a player this part ??
PHP Code:
if(iWarns[iPlayer] == 6) {
        switch(
get_pcvar_num(pPunnishment)) {
            case 
0: {
                
show_motd(iPlayer"You Have 6 Warns . YOU GET BAN""Kicked!")
            }
        }
    } 
i use this but dont working
PHP Code:
if(iWarns[iPlayer] == 6) {
        switch(
get_pcvar_num(pPunnishment)) {
            case 
0: {
                
show_motd(iPlayer"You Have 6 Warns ! You Get ban""Kicked!")
                
server_cmd("amx_ban #%d ^"45.0^" ^"You Have 6 Warn  You Get Ban^" ^"AUTO^"",get_user_userid(id));
            }
        }
    } 
Can you help me please ?
i want player get 45 minutes ban

Last edited by Thew_ConFiger; 09-09-2020 at 10:12.
Thew_ConFiger 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 13:42.


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