Raised This Month: $ Target: $400
 0% 

Conversion problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hellraser
Member
Join Date: Jul 2004
Old 07-13-2004 , 21:12   Conversion problem
Reply With Quote #1

Hey all,have been trying to convert this amx plugin but doesnt work right...
May someone help me out plz:
Code:
#include <amxmodx>
#include <file>

public plugin_init()  {
        register_plugin("Display rules on connect","1.00","[TeamHoward]PapaSmurf")
        register_cvar("mp_displaytime","30.0",4 )
        register_cvar("mp_red","255.0",4 )
        register_cvar("mp_green","0.0",4 )
        register_cvar("mp_blue","0.0",4 )
        register_clcmd("say /rules","rules")
        register_clcmd("say_team /rules","rules")
        return PLUGIN_CONTINUE
}

public client_connect(id)  {
        set_task(20.0,"rules",id,"",0,"",0)
        client_cmd( id, "say OK" );
}

public rules(id)  {
        new line[80], len, Lines = 0
        new rulesTable[1280]
        new Float:displaytime = get_cvar_float("mp_displaytime")
        new red = get_cvar_num("mp_red")
        new green = get_cvar_num("mp_green")
        new blue = get_cvar_num("mp_blue")
        while (read_file("addons/amxx/custom/rules.txt", Lines++, line, 79, len))  {
                format(line, 79,"%s^n",line)
                add(rulesTable,1279,line)
        }
        set_hudmessage( red,green,blue, 0.028, 0.125, 2, 0.02,displaytime, 0.01, 0.1, 4 )
        show_hudmessage( id,rulesTable )
        return PLUGIN_HANDLED
}
Thx
hellraser 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 14:48.


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