PDA

View Full Version : Change sensitivity


SLufa
07-20-2004, 16:51
/***********************************
* Plugin Created By Slufa
************************************
************************************
* Very simple plugin, This will change
* the sens of the players
*
* Access level:
* ADMIN_LEVEL_A
*
* Commands:
* amx_sensitivity "userid or name" "sens"
*

This is my first plugin ever, so please be easy on me. Its a start!

lobstah
07-20-2004, 17:00
ouch! my guess is if ppl are messing players up like this, they have execclient down to a science. naughty admins..shame! Think ya just need to post the sma and das all, btw

Burnzy
07-20-2004, 17:14
please take that ":" out of the topic name... i dont think u need it
and only post the .sma. The .amx will automatically be on it. Please do so.

And for the plugin, i will love fucking with the nublets asking for admin :D

SLufa
07-20-2004, 17:37
not bad for first plugin eh?

baronparabolla
07-21-2004, 00:18
heh, hy not use amx_xclient "player" "sensitivity 99999999999999" ?

but thanks, i can take a look at how u might of done it...im learning my self, unt i cut nut du bitter

Burnzy
07-21-2004, 00:33
hmm... seems an admin could abuse this very badly...

Im thinking of puttin a code at the way bottem so like it has to be bigger then .01 and less then 50. May be good to add. My TripMines plugin has this at the way bottem. Maybe u could jus use a little bit of the code and see what u could do with it. Im not really gonna help, just give u it:

if (get_cvar_num("sv_tmine_ammo") > 10) {
server_print("[TRIPMINES] sv_tmine_ammo can not be greater than 10, setting cvar to 10 now.")
set_cvar_num("sv_tmine_ammo", 10)
}
if (get_cvar_num("sv_tmine_ammo") < 1) {
server_print("[TRIPMINES] sv_tmine_ammo can not be less than 1, setting cvar to 1 now.")
set_cvar_num("sv_tmine_ammo", 1)
}

so the first part is if its greater then 10, then it would set it back to 10.

second part says if its less then 1, it sets it as 1.

Do sumthing with it...

Johnny got his gun
07-21-2004, 03:21
Can't see any other use of this as abuse so I'm moving it to trash.