20.12.2013, 20:48
try this It should Work
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/heal", cmdtext, true, 10) == 0) //the command { if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, 0x9EC73DAA, "You don't have enough cash to Heal You Self"); //if player dosen't have enouth money GivePlayerMoney(playerid, -1000); SetPlayerHealth(playerid, 100); // health status SendClientMessage(playerid, 0x2641FEAA, "You have succesfully Healed Your Self"); //after healing } |