Raised This Month: $ Target: $400
 0% 

quick help


Post New Thread Reply   
 
Thread Tools Display Modes
Old 04-22-2022, 13:35
Craxor
This message has been deleted by Craxor. Reason: Nvm
Usama Ali
Member
Join Date: Apr 2020
Old 04-22-2022 , 15:36   Re: quick help
Reply With Quote #2

will someone tell me why this plugin does not work for me or am i to noob to make it work?

Last edited by Usama Ali; 04-22-2022 at 16:48.
Usama Ali is offline
Old 04-22-2022, 16:47
Usama Ali
This message has been deleted by Usama Ali.
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-24-2022 , 03:33   Re: quick help
Reply With Quote #4

Quote:
Originally Posted by Usama Ali View Post
will someone tell me why this plugin does not work for me or am i to noob to make it work?
From all the replies have been maded , wich modifications did you make.to thw code ?

As oci told you, you have to include new zp libraries so the plugin will work with your mod, use the natives from your new library,and redo a few things so you wont get logerrors

But i suppose you did neither of them . If you want to do it by yourself read OciXcrom replies , if you dont understand make a mew thread on Request section or PM an moderstor to move this thread there .

If you did modifications please post the actual problem , does not compile? Does give log errors? What does happening and post the new source
__________________
Project: Among Us

Last edited by Craxor; 04-24-2022 at 03:35.
Craxor is offline
Send a message via ICQ to Craxor
Usama Ali
Member
Join Date: Apr 2020
Old 04-24-2022 , 20:51   Re: quick help
Reply With Quote #5

it does not show any error in the console and still does not work.

Im Using ZP 4.3 Fix5a

i can also provide you my sma of ZP 4.3
Usama Ali is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-24-2022 , 23:28   Re: quick help
Reply With Quote #6

Quote:
Originally Posted by Craxor View Post
and post the new source
Show the code with your modifications.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Usama Ali
Member
Join Date: Apr 2020
Old 04-25-2022 , 15:19   Re: quick help
Reply With Quote #7

here both the sma and the plugin i want to use. no error in the console but still it wont work
Attached Files
File Type: sma Get Plugin or Get Source (zombie_escape.sma - 36 views - 345.7 KB)
File Type: sma Get Plugin or Get Source (zp_freeze_frist_zombie.sma - 41 views - 936 Bytes)
Usama Ali is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 05-03-2022 , 05:50   Re: quick help
Reply With Quote #8

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

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

#define REMOVE_FROZEN_TASK 43223

new cvar_time

public plugin_init() 

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


public 
zp_user_infected_post(iVictim
{     
   if(
is_user_alive(iVictim) && zp_get_user_first_zombie(iVictim))
   {
      
set_pev(iVictimpev_velocity, {0.0 0.0 0.0})
      
set_pev(iVictimpev_flagspev(iVictimpev_flags) | FL_FROZEN)
      
set_task(get_pcvar_float(cvar_time), "remove_frozen"iVictim REMOVE_FROZEN_TASK)
   }    
}      

public 
remove_frozen(Victim)
{
   
Victim -= REMOVE_FROZEN_TASK;
   
   new 
iVictim pev(Victimpev_flags);

   if(
pev_valid(iVictim))
      
set_pev(iVictimpev_flagsiVictim & ~FL_FROZEN);
   else 
      
log_amx("Error, invalid entity (frozen)");


Last edited by lexzor; 05-03-2022 at 05:52.
lexzor is offline
Reply



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