AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   semi-clip (https://forums.alliedmods.net/showthread.php?t=62543)

Reaper2331 10-29-2007 16:56

semi-clip
 
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?

Sylwester 10-29-2007 18:22

Re: semi-clip
 
http://forums.alliedmods.net/showthread.php?t=59594

Reaper2331 10-29-2007 19:56

Re: semi-clip
 
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 11-07-2007 22:32

Re: semi-clip
 
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)
    }
   }
  }
 } 



All times are GMT -4. The time now is 01:19.

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