AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Realmod regeneration!! (https://forums.alliedmods.net/showthread.php?t=19920)

chRm 10-28-2005 13:41

Realmod regeneration!!
 
1 Attachment(s)
Ok I'm new at coding but I managed to port the realmod plugin from amx to amxx, it compiles with no errors at all (tried with 1.01 and 1.6 compiler). Can you test it and tell me any bugs that you find?

I've tried it on the steamless version of CS 1.5 and it works, however I wasnt able to test it on the steam version of CS 1.6 because my steam client doesn't want to update :(

Thanks,
Panais

chRm 10-29-2005 05:58

When the plugin gets enabled, the freezetime does not work correctly.

Normally you cant move during the freezetime, but if the plugin is enabled, you can move normaly but you can't fire until the freeze time is over.

What should i put in the code to fix?

Heres the code:


Code:
public round_start(){     set_task(get_cvar_float("mp_buytime")*60.0,"buy_time_up",51)     set_cvar_num("amx_buytimeup",0)     return PLUGIN_CONTINUE } public new_round(id){     if(!get_cvar_num("realmod"))         return PLUGIN_CONTINUE             new i     for(i=0;i<8;i++)         playerbody[id][i]=0     playerbuy[id]=true     speedpercent[id]=100.0     onfire[id]=0     knifed[id]=0     leghits[id]=0       set_user_maxspeed(id,240.0)     return PLUGIN_CONTINUE } public round_end(){     remove_task(51)     return PLUGIN_CONTINUE }

[ --<-@ ] Black Rose 10-29-2005 14:31

mp_freezetime 0 ;) hehe

chRm 10-29-2005 15:09

Do you mean i set the sever at mp_freezetime 0, or change code of the plugin?

Batman/Gorlag 10-30-2005 03:02

Go on any console and type this:

Code:

amx_cvar "mp_freezetime" 0
That way when a new round starts you can fire your gun immediately.

chRm 10-30-2005 03:08

But I don't want to change the mp_freezetime, I just want to fix the plugin so that it doesn't let you move in the freezetime just like normal


All times are GMT -4. The time now is 23:49.

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