Raised This Month: $ Target: $400
 0% 

Entitys Prob


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
@omik][Fusion
Member
Join Date: Nov 2005
Location: Killeen,Tx
Old 01-08-2006 , 03:02   Entitys Prob
Reply With Quote #1

Ok...heres the code I have so far *Thanks to Suicide for getting me started in the right direction*
Code:
#include <amxmodx> #include <engine> #include <fun> #define PLUGIN "No Block" #define VERSION "0.1" #define AUTHOR "AtomikFusion" public plugin_init()     {     register_plugin(PLUGIN, VERSION, AUTHOR) } public pfn_touch(ptr , ptd) //ptr = the toucher and ptd = the touched     {     new szToucher[32] , szTouched[32]         get_user_name(ptr , szToucher , 31)     get_user_name(ptd , szTouched , 31)         if(is_user_alive(ptr)  && is_user_alive(ptd))//You use this so you know that a player has touched a player.         {         if( get_user_team(ptr) == get_user_team(ptd) ) //You use this to know that the toucher/touched are on the same team from now on.             {             //Use whatever you would like to do to the players here.                client_print( 0 , print_chat , "** %s blocked %s, %s has NO-CLIP to move" , szToucher , szTouched, szTouched)                 if(get_user_noclip(ptd) == 0)                 {                 set_user_noclip(ptd, 1)             }             else if(get_user_noclip(ptd) == 1)                 {                 client_print(0, print_chat, "** %s Has CLIP again", szTouched)                                 set_user_noclip(ptd)             }         }     } }

It works for the part of setting no clip to the players when they touch each other. Here are my problems
1. It sets no clip to both ptr and ptd
2. Once no clip is set, it does not reset it back(you have to run into ur teammate a couple more times)
3. I cant seem to figure out how to stop the touch call when i try to stand on top of my teammates.

So far it works and compiles with no errors. The touch call only gets activated when you touch ur own teammates. Can anyone help please? Also...if anyone can point me in the direction of how to change hosties models in cz i would appreciate it. I've looked at hostitron but it doesnt work with cz. Thanks
@omik][Fusion 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 16:10.


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