Raised This Month: $ Target: $400
 0% 

Best player of the map?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Santaaa
BANNED
Join Date: May 2012
Old 07-12-2012 , 16:10   Best player of the map?
Reply With Quote #1

Hello there,

I've tryed to catch the best player of the map by using plugin_end, and another action by that. Ill show you guys what i've tried and what the problem is.

PHP Code:
public plugin_end()
{
    for (new 
i<get_maxplayers(); i++)
    {
        if (
Quest[i] == 10)
        {
            
Checktopplayer(i)
        }
    }
}

public 
Checktopplayer(id)
{
    new 
name[32]
    
get_user_name(idname31)
    
    for (new 
i<get_maxplayers(); i++)
    {
        if (
get_user_frags(id) > get_user_frags(i))
        {
            
client_cmd(0"spk %s"Sound)
            
            
Quest[id]++
            
ColorChat(0GREY"%s ^4%s^1 has ^4unlocked^1 a new quest! ^3(%i / 15)"PrefixnameQuest[id])
        }
    }

The problem is, it doesnt work. And it doesnt continue changing the map it just stays at Time left: 0:00
Santaaa is offline
 


Thread Tools
Display Modes

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:08.


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