Raised This Month: $ Target: $400
 0% 

Quick plugin fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kmal2t
BANNED
Join Date: Apr 2006
Old 11-20-2006 , 14:29   Quick plugin fix
Reply With Quote #1

brawr

Last edited by kmal2t; 05-21-2007 at 04:33.
kmal2t is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-20-2006 , 17:35   Re: Quick plugin fix
Reply With Quote #2

Code:
#include <amxmodx> #include <fun> public round_start(id) {         new players[32],num,i, id         get_players(players,num)         new TeamString[8]         for(i=0; i<num; i++){             id = players[i]             get_user_team(id,TeamString,7)             if(equali(TeamString,"VAMPIRE"))                  set_user_health(id, 100)             else if(equali(TeamString,"SLAYER"))                  set_user_health(id, 95)         } }
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
kmal2t
BANNED
Join Date: Apr 2006
Old 11-20-2006 , 17:51   Re: Quick plugin fix
Reply With Quote #3

Thanks, that removed the errors but both teams start with 100 hp so its still not working :\
kmal2t is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 11-20-2006 , 20:40   Re: Quick plugin fix
Reply With Quote #4

anybody? if it helps the old script had this:

Code:
stock get_team_int(id)     {     new TeamString[8]     get_user_team(id,TeamString,7)     if(equali(TeamString,"VAMPIRE"))         return 1     if(equali(TeamString,"SLAYER"))         return 2     return 0 }
kmal2t is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-20-2006 , 21:00   Re: Quick plugin fix
Reply With Quote #5

you should probably register the plugin and the message to call the round start...
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
kmal2t
BANNED
Join Date: Apr 2006
Old 11-20-2006 , 21:42   Re: Quick plugin fix
Reply With Quote #6

brawr

Last edited by kmal2t; 05-21-2007 at 04:34.
kmal2t is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-21-2006 , 04:46   Re: Quick plugin fix
Reply With Quote #7

shouldn't 'Round_Start' be round_start ?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 11-21-2006 , 14:29   Re: Quick plugin fix
Reply With Quote #8

Ya, but I fixed it and it still isn't working :\
kmal2t is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-21-2006 , 15:32   Re: Quick plugin fix
Reply With Quote #9

public round_start(id)
{
new players[32],num,i, id
[ --<-@ ] Black Rose is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 11-21-2006 , 21:08   Re: Quick plugin fix
Reply With Quote #10

Still no.
kmal2t 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 06:56.


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