Pawn code from console
is it possibe to make a function where the pawn code itself is defined by the user in console?
ex: amx_pawncode "set_user_godmode(id)" <-- Sets godmode on the user that called the command amx_pawncode "set_user_godmode(9)" <-- Sets godmode on the user width userid #9 I've missed this many times, because im to lazy to install a ton of plugins to be able to use every single function in the amxx library |
yes it is possible but hell lot of work
i have a similar plugin "engine chat" currently it only has amxmodx.inc + engine.inc functions when i have time i will add fun + fakemeta it is used in chat and syntax is without brackets and no comma read info inside sma |
Quote:
Link? |
|
It wouldn't be hard, just lengthy.
Would need s**t load of if's |
Quote:
|
Ew. That plugin is ugly. REALLY ugly.
A better way would be to write a module to compile strings on the fly! I might do that someday... |
You're thinking of the "eval" function. Pawn does not have one of these.
|
Quote:
|
| All times are GMT -4. The time now is 15:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.