Exeption in Commands
#4

Quote:
Originally Posted by Machida
View Post
new TIMES = 0; // outside the health function

/health function:
if(TIMES < 3){
// Your code + :
}else {
// SendMessage... "You can only use 2 times" or w.e
}
TIMES++;

You probably will need to declare "TIMES" for each team or something
ok but i need a complete code...
changement in the roles:
i say to you what i want :

if a TEAM_ARMY Member do /health [ID] , he can health only Two Teams :
TEAM_HUMAN and TEAM_ARMY
and whene i do /health to TEAM_MEDIC and TEAM_ZOMBIE , it say to him you can't heal Enmys or someehting...

Please i need a Full script i will never forgot if you help me..
Reply


Messages In This Thread
Exeption in Commands - by ServerScripter - 20.08.2011, 21:53
Re: Exeption in Commands - by James_Bourne - 20.08.2011, 21:55
Re: Exeption in Commands - by Machida - 20.08.2011, 21:57
Re: Exeption in Commands - by ServerScripter - 20.08.2011, 23:56

Forum Jump:


Users browsing this thread: 1 Guest(s)