unviseral admin weapon plugin
I want to make all my admin_weapon plugins into one plugin. I wana do it sortof like this, if mod = {cstrike} use the line below, if mod = {svencoop} use the line below etc etc. can someone help me out?
|
try using get_modname native to get the modname and then equali to test which mod is running...
|
Quote:
|
oh well xD
Code:
could work; not compiled, not tested :) |
did you write that up in like 5 seconds? if you did, thats amazing!
|
Girthesniper i thought u didn't understand the plugins, if not then how do u plan to do this?
|
Quote:
|
looks fine to me but i wouldnt do that would be a waste, loading up all that extra stuff. http://www.nsarmslab.com/qwerty/smileys/XD.gif
|
Girthesniper good luck
Quote:
|
and of course, it doesnt work :cry:. I really need to lear SMALL, but I cant.
|
Quote:
|
but whats the point? do u use the same amx folder for every mod?
|
Quote:
|
Quote:
Code:
|
Code:
Code:
expands to: Code:
You could maybe use: Code:
if (ISMOD_CSTRIKE()) ... to get rid of some call / proc instructions but i don't understand how your (=AssKicR's) code should work...[/small] |
Quote:
|
mmm asskicr's code or PM's hard to choose http://www.nsarmslab.com/qwerty/smileys/tongue.gif
|
well, i also thought about using is_running, but then decided to compare the string manually so get_modname doesn't have to be called more times.
Also, i understand that is_running part, but, like i said, i dont understand the code in your public sumthing() function :) |
I'm using PM's, because he wrote AMXx, so he probley knows what hes doing :D
|
| All times are GMT -4. The time now is 15:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.