12.08.2012, 17:24
if(PlayerInfo[playerid][pBandagekit] < 1)
Doesnt this mean you need more than one kit? u might try
if (strcmp("/healme", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pBandagekit] == 1)
{
PlayerInfo[playerid][pBandagekit] = 0;
ClearAnimations(playerid);
return 1;
}
else
{
SendClientMessage(playerid, 0x00FF00AA, "You dont have a Bandage kit.");
return 1;
}
}
Doesnt this mean you need more than one kit? u might try
if (strcmp("/healme", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pBandagekit] == 1)
{
PlayerInfo[playerid][pBandagekit] = 0;
ClearAnimations(playerid);
return 1;
}
else
{
SendClientMessage(playerid, 0x00FF00AA, "You dont have a Bandage kit.");
return 1;
}
}