02.07.2012, 21:25
if(!strcmp(cmdtext, "/healme", true, 7))
{
if(IsPlayerAdmin(playerid))
SetPlayerHealth(playerid, 100)
SetPlayerArmour(playerid, 100)
SendClientMessage(playerid, blue, "You have restored your Health and Armour.");
return 1;
}
should be in OnPlayerCommandText and OnPlayerCommandText should return a value (return 0 and you have put that in the if statement, put it outside.
{
if(IsPlayerAdmin(playerid))
SetPlayerHealth(playerid, 100)
SetPlayerArmour(playerid, 100)
SendClientMessage(playerid, blue, "You have restored your Health and Armour.");
return 1;
}
should be in OnPlayerCommandText and OnPlayerCommandText should return a value (return 0 and you have put that in the if statement, put it outside.