23.06.2015, 19:09
Do you store your player-variables in an enum? Then it would work like this:
Set pInfo[p][isInjured] = 1; when the player gets injured and check:
if(pInfo[p][isInjured] != 1)
{
// Code here
}
Код:
enum PDATA // EXAMPLE { Float:x, Float:y, Float:z, name[24], money, isInjured } pInfo[MAX_PLAYERS][PDATA]; // EXAMPLE
if(pInfo[p][isInjured] != 1)
{
// Code here
}