Raised This Month: $ Target: $400
 0% 

quick help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Usama Ali
Member
Join Date: Apr 2020
Old 04-22-2022 , 11:09   Re: quick help
Reply With Quote #5

Quote:
Originally Posted by Nutu_ View Post
the error wasn't even on changes OcixCrom gave you!
There you go!
PHP Code:
#include <amxmodx>
#include <fun>
#include <zombieplague>

#define PLUGIN     "Freeze first zombie"
#define VERSION             "1.0"
#define AUTHOR             "wicho"

#define MarkPlayerSpeed(%0)  bitPlayerSpeed |= (1 << (%0 & 31))
#define ClearPlayerSpeed(%0) bitPlayerSpeed &= ~(1 << (%0 & 31))
#define IsPlayerSpeed(%0)    bitPlayerSpeed & (1 << (%0 & 31))

new bitPlayerSpeed

new cvar_time

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
        
    
cvar_time register_cvar("zp_freeze_frist_zombie""5.0")


public 
zp_user_infected_post(id
{     
      if(
is_user_alive(id) && zp_get_user_first_zombie(id))
      {
         
IsPlayerSpeed(id) == get_user_maxspeed(id)
         
set_user_maxspeed(id1.0)
         
set_task(cvar_time"Unfreeze"id)
      }    
}      

public 
Unfreeze(id
{
   
set_user_maxspeed(idIsPlayerSpeed(id))

compiled for me, those 2 tag mismatch, won't do anything to ur server, dont worry!
It Does not Work.
Usama Ali 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 21:23.


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