How to make "if" or command in one script?
#1

I mean...

I want to make like that:

Код:
new color;
color = GetPlayerColor(playerid);
if (color != COLOR_GREEN)
{
SendClientMessage(playerid, COLOR_RED, "Error: You are not a medic.");
}
else
{
SetPlayerHealth(playerid, 100);
return 1;
}
Alright... I want it to be Color Green OR Color Yellow. What do I do?!

Thanks.
Reply


Messages In This Thread
How to make "if" or command in one script? - by Injector - 06.01.2011, 21:09
Re: How to make "if" or command in one script? - by Kyle_Olsen - 06.01.2011, 21:14
Re: How to make "if" or command in one script? - by selten98 - 06.01.2011, 21:16
Re: How to make "if" or command in one script? - by Injector - 06.01.2011, 21:17

Forum Jump:


Users browsing this thread: 3 Guest(s)