Miscellany
public text v1 · immutable
if (strcmp(cmdtext, "/health", true)==0)
{
new string[256];
if(GetPlayerMoney(playerid) >= 3000){
SetPlayerHealth(playerid,100);
GetPlayerMoney(playerid);
GivePlayerMoney(playerid, -3000);
format(string, sizeof(string), ">> %s healed himself.", PlayerName(playerid));
SendClientMessageToAll(COLOR_GREY, string);
}
else{
SendClientMessage(playerid,COLOR_RED,"You have not enaugh cash.print(3000$ needed)");
}
return 1;
}