Need help with my /shop and /heal
#4

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
}

Reply


Messages In This Thread
Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 19:40
Re: Need help with my /shop and /heal - by niels44 - 20.12.2013, 20:02
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 20:43
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 20:48
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 20:52
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 20:56
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 21:01
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 21:14
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 21:16

Forum Jump:


Users browsing this thread: 2 Guest(s)