Raised This Month: $ Target: $400
 0% 

semi-clip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 10-29-2007 , 16:56   semi-clip
Reply With Quote #1

ok im trying to make a semi-clip plugin, all i have is

PHP Code:
public Touch_Player(idotherPlayer
{
 if(!
g_bModifyMode[id] && !g_bModifyMode[otherPlayer] && g_bIsSurf)  
 {
  
  
clearAirRecords(id//Exploit Fix.
  
  
if(g_NoClip) {
   if(
entity_get_int(idEV_INT_solid) != SOLID_NOT)
    
entity_set_int(idEV_INT_solidSOLID_NOT)
   if(
entity_get_int(otherPlayerEV_INT_solid) != SOLID_NOT)
    
entity_set_int(otherPlayerEV_INT_solidSOLID_NOT)
    
   
//Allow players to jump/stack on each other 
   
new buttonPressed entity_get_int(idEV_INT_button)
   if( (
buttonPressed IN_JUMP) ) {
    new 
Float:jVel[3]
    
entity_get_vector(id,EV_VEC_velocity,jVel)
    
jVel[2] = 375.0
    entity_set_vector
(id,EV_VEC_velocity,jVel)
   }
  }
 }

from OneEyed's Surf_olympics plugin but i need help finishing it bc i dont have time to =/, will someone help?
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-29-2007 , 18:22   Re: semi-clip
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=59594
__________________
Impossible is Nothing
Sylwester is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 10-29-2007 , 19:56   Re: semi-clip
Reply With Quote #3

But like in the example above, there is a thing set to make it so people can jump on each other(since i have a surf server, people get in jail and need to get out)
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 11-07-2007 , 22:32   Re: semi-clip
Reply With Quote #4

ok i got this but then it doesnt compile right.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Semi-Clip"
#define VERSION "1.0"
#define AUTHOR "Reaper2331"
new p_Semiclip
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
p_Semiclip register_cvar("amx_semiclip","1")
 
public 
Touch_Player(idotherPlayer
 {
  if(!
g_bModifyMode[id] && !g_bModifyMode[otherPlayer] && g_bIsSurf && p_Semiclip == 1)  
  {
   
   
clearAirRecords(id//Exploit Fix.
   
   
if(g_NoClip) {
    if(
entity_get_int(idEV_INT_solid) != SOLID_NOT)
     
entity_set_int(idEV_INT_solidSOLID_NOT)
    if(
entity_get_int(otherPlayerEV_INT_solid) != SOLID_NOT)
     
entity_set_int(otherPlayerEV_INT_solidSOLID_NOT)
    
    
//Allow players to jump/stack on each other 
    
new buttonPressed entity_get_int(idEV_INT_button)
    if( (
buttonPressed IN_JUMP) ) {
     new 
Float:jVel[3]
     
entity_get_vector(id,EV_VEC_velocity,jVel)
     
jVel[2] = 375.0
     entity_set_vector
(id,EV_VEC_velocity,jVel)
    }
   }
  }
 } 
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
Reply


Thread Tools
Display Modes

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 01:19.


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