 |
|
Senior Member
|

10-18-2004
, 07:25
|
#3
|
Nice try, but that's a bit lengthy. There are many events that can be used with amxmodx. There's a few topics on here that give you many examples of events that can be used and the info they pass through, use the search engine. Anyways, like modules with amxmodx (which send over parameters), events do the same exact thing. They send over info that can be hooked through the read_data function. How to get this info is just as the description suggests.
When you are asking for string the array and length is needed (read_data(2,name,len)).
When you use the event and you know the second "parameter" is a string then the function you would use is read_data(2,String,lengthofstring). As well lets say you know its an integer then you wuold use something such as new int = read_data(2). if it's the third parameter that your looking for you would use read_data(3,...) It actually acts exactly like read_argv() only there's a certain # of parameters that can be found easily through the search enginge or sdk
__________________
Currently Looking for a mod team.
|
|
|
|