Raised This Month: $ Target: $400
 0% 

kk need some help with admin mods


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tarre
Junior Member
Join Date: May 2006
Old 05-30-2006 , 16:04   kk need some help with admin mods
Reply With Quote #1

hmm how to make so all admins gets sv_gravity 300 and sv_friction -100
//Sry if wrong forum ..

//Tarre[/code]
tarre is offline
tarre
Junior Member
Join Date: May 2006
Old 05-30-2006 , 17:36  
Reply With Quote #2

please help fast :S?! ;P
tarre is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-30-2006 , 18:16  
Reply With Quote #3

Code:
set_pev(index, pev_gravity, 300.0 / get_cvar_num("sv_gravity")  /* ? */) set_pev(index, pev_friction, get_cvar_num("sv_friction") - 100 /* ? */)
VEN is offline
tarre
Junior Member
Join Date: May 2006
Old 05-30-2006 , 18:29  
Reply With Quote #4

hmmm like this?

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

public plugin_init() 
{ 
register_plugin( "Silent pwnage", "1.0", "T A R R E" ); 
} 
set_pev(index, pev_gravity, 300.0 / get_cvar_num("sv_gravity")  /* ? */) 
set_pev(index, pev_friction, get_cvar_num("sv_friction") - 100 /* ? */)
is m
tarre is offline
tarre
Junior Member
Join Date: May 2006
Old 05-30-2006 , 18:35  
Reply With Quote #5

bah getting error :S

Quote:
/home/users/amxmodx/tmp3/phpK9bwc7.sma(8) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpK9bwc7.sma(8) : error 021: symbol already defined: "get_cvar_num"
/home/users/amxmodx/tmp3/phpK9bwc7.sma(9) : error 021: symbol already defined: "set_pev"
/home/users/amxmodx/tmp3/phpK9bwc7.sma(9) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpK9bwc7.sma(9) : warning 203: symbol is never used: "set_pev"
[/code]
tarre is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 05-30-2006 , 19:12  
Reply With Quote #6

need to include fakemeta

example code:

Code:
#include <amxmodx> #include <amxmisc> #include <fakemeta> public plugin_init() {    register_plugin( "Silent pwnage", "1.0", "T A R R E" );    register_concmd("amx_somecommand","cmd_change",ADMIN_LEVEL_A," - Give's all admins higher grav/friction") } public cmd_change(id, level, cid) {      if (!cmd_access(id, level, cid, 1))         return PLUGIN_HANDLED          for(new i=1;i<get_playersnum();i++)      {         if(is_user_admin(i))     {         set_pev(i, pev_gravity, 300.0 / get_cvar_num("sv_gravity")  /* ? */)         set_pev(i, pev_friction, get_cvar_num("sv_friction") - 100 /* ? */)     }      }            return PLUGIN_HANDLED }
Deviance is offline
tarre
Junior Member
Join Date: May 2006
Old 05-30-2006 , 19:45  
Reply With Quote #7

hmm :'( dont working Unkonwn plugin, and 1 more error
Quote:
home/users/amxmodx/tmp3/phpPhS2LK.sma( : warning 217: loose indentation
tarre is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 05-30-2006 , 19:50  
Reply With Quote #8

Quote:
Originally Posted by tarre
hmm :'( dont working Unkonwn plugin, and 1 more error
Quote:
home/users/amxmodx/tmp3/phpPhS2LK.sma( : warning 217: loose indentation
[correction]warning[/correction]

w/e i fixed it try now
Deviance is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-30-2006 , 19:55  
Reply With Quote #9

Formatted right. Also I know if fun set_user_gravity() it has to be divided by 800 is it a different case for the FM way?

Code:
#include <amxmodx> #include <amxmisc> #include <fakemeta> public plugin_init() {     register_plugin( "Silent pwnage", "1.0", "T A R R E" );     register_concmd("amx_somecommand","cmd_change",ADMIN_LEVEL_A," - Give's all admins higher grav/friction") } public cmd_change(id, level, cid) {     if (!cmd_access(id, level, cid, 1))         return PLUGIN_HANDLED         for(new i=1;i<get_playersnum();i++)     {         if(is_user_admin(i))         {             set_pev(i, pev_gravity, 300.0 / get_cvar_num("sv_gravity")  /* ? */)             set_pev(i, pev_friction, get_cvar_num("sv_friction") - 100 /* ? */)         }     }     return PLUGIN_HANDLED }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
tarre
Junior Member
Join Date: May 2006
Old 05-30-2006 , 19:59  
Reply With Quote #10

Quote:
Originally Posted by Doombringer
Quote:
Originally Posted by tarre
hmm :'( dont working Unkonwn plugin, and 1 more error
Quote:
home/users/amxmodx/tmp3/phpPhS2LK.sma( : warning 217: loose indentation
[correction]warning[/correction]

w/e i fixed it try now
nej det funkar inte det står bara unkown FE l
vad e felet?
jag lägger först .sma filen i scripting sen gjorde så blev det en .amxx fil som jag la i plugins mappen, och öppnade plugins.ini sen sätta fil namnet där silent_admin.amxx utan ; framför,

"Förklarade bäst på svenska"
tarre is offline
Reply


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 16:30.


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