View Single Post
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 14:00   ban function isnt working
Reply With Quote #1

Hello there,

What am i doing wrong here so that it wont work?

PHP Code:
public EndVote2(id)
{
    new 
total gVotes[0] + gVotes[1]
    
    new 
name[32], authid[40]
    
get_user_name(tempidname31)
    
get_user_authid(tempidauthid31)
    
    if (
gVotes[0] > gVotes[1])
    {
        
ColorChat(0GREY"%s ^1Question: (ban) ^4%s"Prefixname)
        
ColorChat(0GREY"%s ^1Reason: ^4%s^1"PrefixBanReasons[reason])
        
ColorChat(0GREY"%s ^1Length:^4 30^1 minutes"Prefix)
        
ColorChat(0GREY"%s ^1Total votes: ^4%i^1 - Yes: ^4%i"PrefixtotalgVotes[0])
        
server_cmd("amx_ban #%s 30 ^"%s^""authidBanReasons[reason])
    } 
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline