AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Quick plugin fix (https://forums.alliedmods.net/showthread.php?t=47552)

kmal2t 11-20-2006 14:29

Quick plugin fix
 
brawr

Emp` 11-20-2006 17:35

Re: Quick plugin fix
 
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)         } }

kmal2t 11-20-2006 17:51

Re: Quick plugin fix
 
Thanks, that removed the errors but both teams start with 100 hp so its still not working :\

kmal2t 11-20-2006 20:40

Re: Quick plugin fix
 
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 }

Emp` 11-20-2006 21:00

Re: Quick plugin fix
 
you should probably register the plugin and the message to call the round start...

kmal2t 11-20-2006 21:42

Re: Quick plugin fix
 
brawr

dutchmeat 11-21-2006 04:46

Re: Quick plugin fix
 
shouldn't 'Round_Start' be round_start ?

kmal2t 11-21-2006 14:29

Re: Quick plugin fix
 
Ya, but I fixed it and it still isn't working :\

[ --<-@ ] Black Rose 11-21-2006 15:32

Re: Quick plugin fix
 
public round_start(id)
{
new players[32],num,i, id

kmal2t 11-21-2006 21:08

Re: Quick plugin fix
 
Still no.


All times are GMT -4. The time now is 06:56.

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