AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Offset help (https://forums.alliedmods.net/showthread.php?t=5347)

Stephen 08-29-2004 13:20

Offset help
 
Well i dont really know what to do.Im trying to find the right Offsets and stuff like that, but i dotn got any clue what i have to do, i just messed around with this.I dont got any errors while compiling and No errors in game, when i type into the console, get_offset , it shows nothings not even UNKNOW COMMAND, i figure that i need an native that shows me the line of something, but i cant figure it out. please help me:cry:

//Offset Shower
//Author: Stephen

#include <amxmodx>
#include <engine>

public plugin_init() {
register_plugin("offset","1.0","Stephen")
register_clcmd("get_offset","g_offset")
return PLUGIN_CONTINUE
}

public g_offset(id) {
get_offset_int(91, 91)
get_offset_char(91, 91)
return PLUGIN_HANDLED

}
:cry:

Freecode 08-29-2004 13:27

i never delt with offsets by try something like this

Code:
public g_offset(id) { get_offset_int(91, 91) new off = get_offset_char(91, 91) client_print(id,3,"%s",off) return PLUGIN_HANDLED }

Stephen 08-29-2004 13:36

thx for reply, but it didnt work.

it still shows in the console when i press: get_offset nothing

Freecode 08-29-2004 13:52

Code:
public g_offset(id) { get_offset_int(91, 91) new off = get_offset_char(91, 91) client_print(id,3,"Offest: %s : %d",off,off) return PLUGIN_HANDLED }

Stephen 08-29-2004 15:07

hmm it did now something in the console:

i had to type 5 times: get_offset
after i typed 5 times get_offset this appeared:
Offset: : 0
i tried it again with a other number , so not 91,but with 67 and still it showed 0.


All times are GMT -4. The time now is 17:11.

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