Raised This Month: $32 Target: $400
 8% 

AMXx 1.50 Scripting Changes


Post New Thread Reply   
 
Thread Tools Display Modes
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 08-11-2005 , 11:05  
Reply With Quote #21

Did anyone make use of register_native yet?

Maybe we should add it to a few of the standard plugins. To allow plugins to use plugin-native calls instead of doing stuff like server_cmd("amx_ban %s...
Johnny got his gun is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-11-2005 , 15:23  
Reply With Quote #22

the current superhero mod could use this greatly since all it is is a bunch of server_cmd. But only if including other sma's workd good.
Freecode is offline
BAILOPAN
Join Date: Jan 2004
Old 08-11-2005 , 15:51  
Reply With Quote #23

You wouldn't include other sma's, you would give out a .inc file with the natives.

JGHG: definitely a good idea.
__________________
egg
BAILOPAN is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-11-2005 , 16:43  
Reply With Quote #24

so i make the native in a plugin and add them to an inc?
Freecode is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 08-11-2005 , 18:22  
Reply With Quote #25

Freecode: Exactly

Theoretically a module like fun could be easily written completely as a plugin because all it does is edit some entvars. But in such cases it's still a bad idea for the speed loss. I think plugin natives should only really be for tasks that are very seldom needed, like banning ppl and such. I'm not sure exactly how Superhero works but I think it would need a lot of calls to plugin natives? Maybe it's better to write that as module instead. However that's also a tradeoff because doing all that stuff is way easier in plugins with all the nice interfaces we have.
Johnny got his gun is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-11-2005 , 18:26  
Reply With Quote #26

Quote:
Originally Posted by Johnny got his gun
Freecode: Exactly

Theoretically a module like fun could be easily written completely as a plugin because all it does is edit some entvars. But in such cases it's still a bad idea for the speed loss. I think plugin natives should only really be for tasks that are very seldom needed, like banning ppl and such. I'm not sure exactly how Superhero works but I think it would need a lot of calls to plugin natives? Maybe it's better to write that as module instead. However that's also a tradeoff because doing all that stuff is way easier in plugins with all the nice interfaces we have.
yes current shero uses infinite numver for server_cmd to call functions from main plugin in other plugins. its horrible.
And yes i am reqriting shero as a module
Freecode is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-26-2005 , 11:01  
Reply With Quote #27

Quote:
Originally Posted by Johnny got his gun
Did anyone make use of register_native yet?
Using it in the new core shero plugin.
Works like a charm
Freecode is offline
timittytim
New Member
Join Date: Sep 2005
Old 09-05-2005 , 12:32   Commands
Reply With Quote #28

just wondering how i can make it so i can access every commands, becasue i used the line that was already in the UAIO_admin.ini but just changed the ID... i cant acess name, lock, arena's, invisablility and others.
timittytim 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 22:51.


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