IPB

Welcome Guest ( Log In | Register )

> I need your help with metamod coding
1
post Feb 13 2007, 03:37 AM
Post #1


Newbie
*

Group: Members
Posts: 4
Joined: 13-February 07
Member No.: 1,032



I need your help for put this in "pingkick" Source Code: when a player connect to server i Need ask if the player have got cvar fps_max set in 100, if the player don't have fps_max = 100, the plugin must kick player.

here is the source: http://rapidshare.com/files/16287497/pingk..._Code_.rar.html

Please its very important sad.gif

thank you
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
1
post Feb 16 2007, 05:37 PM
Post #2


Newbie
*

Group: Members
Posts: 4
Joined: 13-February 07
Member No.: 1,032



Well i have the source of the plugin in AMXMODX can help me to translate to metamod plugin?

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))
}

}
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post Feb 16 2007, 06:21 PM
Post #3


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



not me, i do amxx, not metamod... go ask at nsmod.org, peachy will probably do it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 15th June 2025 - 01:38 PM