Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Sub-Plugin: Delayed Infection 1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-11-2011 , 01:00   Re: [ZP] Sub-Plugin: Delayed Infection 1.0
Reply With Quote #1

Add this:

PHP Code:
#include <hamsandwich>
#include <fakemeta> 
because the server won't load that modules after the map change if isn't loaded yet...
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-11-2011 , 07:10   Re: [ZP] Sub-Plugin: Delayed Infection 1.0
Reply With Quote #2

thank you all
i'm glad you enjoy it
Quote:
Originally Posted by bibu View Post
Good job, however, you should consider this:
  • Use the ham module, it isn't needed to extract the native from it at all. (EDIT: same with fakemeta)
  • Check if user is alive at spawn.
  • PHP Code:
    fm_set_rendering(id
    ->
    PHP Code:
    set_user_rendering(id_000_0
  • Use fun's set_user_rendering instead.
i'm using the natives instead because i don't want to fill the plugin with unnecessary code
also using fakemeta so the fun module won't be required along with it
i'm always trying to optimize the plugins
why is fun's set_user_rendering better?
Quote:
Originally Posted by claudiuhks View Post
Add this:

PHP Code:
#include <hamsandwich>
#include <fakemeta> 
because the server won't load that modules after the map change if isn't loaded yet...
but they will already be loaded by zombie plague, so this isn't a problem
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
bibu
Veteran Member
Join Date: Sep 2010
Old 06-11-2011 , 07:50   Re: [ZP] Sub-Plugin: Delayed Infection 1.0
Reply With Quote #3

Quote:
Originally Posted by georgik57 View Post
i'm using the natives instead because i don't want to fill the plugin with unnecessary code
Has nothing todo with unnecessary code, you should use forward/natives provided intelligently depending the need and whatever the module.

Quote:
Originally Posted by georgik57 View Post
also using fakemeta so the fun module won't be required along with it
i'm always trying to optimize the plugins
why is fun's set_user_rendering better?
set_user_rendering from fun is much faster than FM's.

Read this for more:

http://forums.alliedmods.net/showthread.php?t=88792
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-11-2011 , 07:56   Re: [ZP] Sub-Plugin: Delayed Infection 1.0
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
Has nothing todo with unnecessary code, you should use forward/natives provided intelligently depending the need and whatever the module.



set_user_rendering from fun is much faster than FM's.

Read this for more:

http://forums.alliedmods.net/showthread.php?t=88792
i really need to learn better coding xD
anyway i'm too lazy to read that :D
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-15-2011 , 08:13   Re: [ZP] Sub-Plugin: Delayed Infection 1.1
Reply With Quote #5

Plugin updated!
Check the first post for more info
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-15-2011 , 08:15   Re: [ZP] Sub-Plugin: Delayed Infection 1.1
Reply With Quote #6

very nice finally fix the prob
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
jiribocek
Junior Member
Join Date: Nov 2009
Location: Czech Rep.
Old 06-15-2011 , 15:31   Re: [ZP] Sub-Plugin: Delayed Infection 1.1
Reply With Quote #7

Good job georgik, i miss this plugin in my server
jiribocek is offline
xixi
Member
Join Date: Nov 2010
Old 06-15-2011 , 16:35   Re: [ZP] Sub-Plugin: Delayed Infection 1.1
Reply With Quote #8

[ro]
am pus asta pe Serverul meu si nu sa intamplat nimic asa ca e naspa

[en]
I put it on my server and nothing happened so it sucks
__________________


[img]http://img217.**************/img217/2378/col2w.png[/img]
xixi is offline
Send a message via Yahoo to xixi Send a message via Skype™ to xixi
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-16-2011 , 09:32   Re: [ZP] Sub-Plugin: Delayed Infection 1.1
Reply With Quote #9

Quote:
Originally Posted by bibu View Post
You didn't do the optimizations what I posted? Oh well...
i forgot
but why do i need to check if player is alive at spawn?
i want to reset those things anyway...it doesn't really matter
why should i include the ham and fakemeta when i can simply define the natives? isn't that optimizing the plugin?
and about the fun instead of fakemeta...why include another module when i can use the one zp is using too?
Quote:
Originally Posted by xixi View Post
[ro]
am pus asta pe Serverul meu si nu sa intamplat nimic asa ca e naspa

[en]
I put it on my server and nothing happened so it sucks
[ro] daca nu stii sa instalezi un plugin sau nu stii macar la ce sa te astepti sa faca cand il bagi e si normal

[en] doesn't matter
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
xixi
Member
Join Date: Nov 2010
Old 06-16-2011 , 10:26   Re: [ZP] Sub-Plugin: Delayed Infection 1.1
Reply With Quote #10

poate ai vazut ca am si 2 SV ,deci eu cred ca stiu sa instalez un amarat de plugin,dar cum am spus mai sus nu se intampla nimik ,ce ar trebui sa faca,spune-mi te rog,functioneaza daor la un anumit modul?
- faza e ca nu aparea nici la M-2-9-,adica nu aparea ca extraoptiunea de cumparare
__________________


[img]http://img217.**************/img217/2378/col2w.png[/img]
xixi is offline
Send a message via Yahoo to xixi Send a message via Skype™ to xixi
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 16:29.


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