Raised This Month: $ Target: $400
 0% 

Pawn code from console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-18-2005 , 15:41   Pawn code from console
Reply With Quote #1

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
__________________
Sig(h)!
Obbin is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-18-2005 , 16:03  
Reply With Quote #2

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
__________________
alias White Panther
karlos is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-19-2005 , 05:17  
Reply With Quote #3

Quote:
Originally Posted by karlos
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
Icant find it :S
Link?
__________________
Sig(h)!
Obbin is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-19-2005 , 06:02  
Reply With Quote #4

here
__________________
alias White Panther
karlos is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 12-19-2005 , 15:10  
Reply With Quote #5

It wouldn't be hard, just lengthy.
Would need s**t load of if's
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 12-19-2005 , 16:18  
Reply With Quote #6

Quote:
Originally Posted by Charr
It wouldn't be hard, just lengthy.
Would need s**t load of if's
Alias already done
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 12-19-2005 , 16:20  
Reply With Quote #7

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...
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-19-2005 , 16:47  
Reply With Quote #8

You're thinking of the "eval" function. Pawn does not have one of these.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-22-2005 , 07:10  
Reply With Quote #9

Quote:
Originally Posted by Twilight Suzuka
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...
If u do that it would be awsome
__________________
Sig(h)!
Obbin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:53.


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