AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help - Happy Respawn Hour (https://forums.alliedmods.net/showthread.php?t=195873)

PandaDnB 09-12-2012 12:54

Help - Happy Respawn Hour
 
1 Attachment(s)
Hello guys, i made a happy respawn hour plugin by mixing 2 other plugins (happy frag hour and deathrun respawn) but i have a problem - I added a /respawn command but it works even if it is not happy hour (just the command). Can someone add a check if its happy hour so that only then the /respawn command works? I'm attaching my code.

H.RED.ZONE 09-12-2012 14:44

Re: Help - Happy Respawn Hour
 
Here..
Spoiler

PandaDnB 09-12-2012 15:44

Re: Help - Happy Respawn Hour
 
Now it doesn't work at all. :(

H.RED.ZONE 09-12-2012 15:49

Re: Help - Happy Respawn Hour
 
Edited sorry X)

EDIT: Omg my keybord is doing something it should not, finally edited -.-

EDIT2: And again -.-

PandaDnB 09-12-2012 15:59

Re: Help - Happy Respawn Hour
 
Run time error, and it respawns only with the command, i want auto respawn when you die + the command so you can respawn when you join.

L 09/12/2012 - 23:12:06: Function is not present (function "respawn") (plugin "HappyHour.amxx")
L 09/12/2012 - 23:12:06: [AMXX] Displaying debug trace (plugin "HappyHour.amxx")
L 09/12/2012 - 23:12:06: [AMXX] Run time error 10: native error (native "set_task")
L 09/12/2012 - 23:12:06: [AMXX] [0] happyhour - Copy.sma::FW__DeathMessage (line 53)

H.RED.ZONE 09-12-2012 16:25

Re: Help - Happy Respawn Hour
 
Quote:

Originally Posted by PandaDnB (Post 1797723)
Run time error, and it respawns only with the command, i want auto respawn when you die + the command so you can respawn when you join.

L 09/12/2012 - 23:12:06: Function is not present (function "respawn") (plugin "HappyHour.amxx")
L 09/12/2012 - 23:12:06: [AMXX] Displaying debug trace (plugin "HappyHour.amxx")
L 09/12/2012 - 23:12:06: [AMXX] Run time error 10: native error (native "set_task")
L 09/12/2012 - 23:12:06: [AMXX] [0] happyhour - Copy.sma::FW__DeathMessage (line 53)

Yes that was from old one i forgot to change forward name. It was edited later (:

PandaDnB 09-12-2012 16:46

Re: Help - Happy Respawn Hour
 
I guess it works now, thank you verry much! And the code looks much better your way, thanks again!


All times are GMT -4. The time now is 08:14.

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