Exeption in Commands
#1

hi i would creat a commands (/health) only for a Team and This team can health only 2 teams if he health the third Team a message sayed to him : you can not do that.

i know u don't understand what i sayed but:

there are 3 teams:
#define TEAM_HUMAN 1
#define TEAM_ARMY 3
#define TEAM_MEDIC 4

"TEAM_ARMY" can health TEAM_HUMAN but can't health TEAM_MEDIC

the command is /health it set HP to 100
Reply
#2

maybe u change role of them and maybe you change places of them.
Reply
#3

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
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)