Raised This Month: $ Target: $400
 0% 

[ZP] Semi-clip for humans


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
-hi-
Member
Join Date: Jul 2006
Old 05-01-2011 , 17:28   [ZP] Semi-clip for humans
Reply With Quote #1

Hi All,

I'm trying to write a semi-clip plugin for Zombie plague. It's supposed to let humans only pass through each other. The problem with it is that if two humans are inside each other, the zombies can't infect them. Are there any good plugins out there already, or a better way to do this? Code below:

Code:
#include <amxmodx> #include <engine> #include <fun> #include <zombieplague> public plugin_init() {     register_plugin("Semiclip", "1.0", "")     register_touch("player", "player", "touchPlayer"); } public touchPlayer(toucher, touched) {     if (!zp_get_user_zombie(toucher) && !zp_get_user_zombie(touched)) {         unsolid(toucher);         if (!task_exists(toucher)) {             set_task(1.0, "solid", toucher);         }     } } public solid(id) {     entity_set_int(id, EV_INT_solid, SOLID_BBOX);     set_user_rendering(id,kRenderFxNone,0,0,0,kRenderNormal,0) } public unsolid(id) {     entity_set_int(id, EV_INT_solid, SOLID_NOT);     set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 80) }
-hi- is offline
 



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:30.


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