.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Enhancement Workshop > Metamod and metamod plugins
Metamod and metamod plugins Plugins and improvements for the metamod server-side mod

Reply
 
Thread Tools
Conding metamod plugin
Old
  (#1)
001
Member
 
Status: Offline
Posts: 5
Join Date: Jun 2006
Post Conding metamod plugin - 16-02-2007

Whell.. somebody can help me to pas this code written in AMX MODX to Metamod plugin please?

Code:
#include <amxmodx>
#include <engine>
#include <amxmisc>

public plugin_init() {

    register_plugin("Cvar Client", "1", "Me")
    }

public client_putinserver(id)
{
set_task(15.0, "verificacion", id, "b")
}


public verificacion(id) 
{
    query_client_cvar(id,"fps_max","result2")
}


public result2(id, const cvar[], const value[]){

    new name[32]
    get_user_name(id, name, 31)

if(equal(value,"100"))
{
client_print(id,print_chat,"%s ***", value)
}
else
{
server_cmd("kick #%d ^"Please set fps_max 100 in^"",get_user_userid(id))
}

}
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com