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

Код:
new color;
color = GetPlayerColor(playerid);
if (color != COLOR_GREEN || color != COLOR_YELLOW)
{
SendClientMessage(playerid, COLOR_RED, "Error: You are not a medic.");
}
else
{
SetPlayerHealth(playerid, 100);
return 1;
}
Should work
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: 1 Guest(s)