Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:hp(playerid, params[])
- {
- new Float:zycie, text[128];
- if(sscanf(params, "f", zycie))
- return SendClientMessage(playerid, -1, "Użyj: /hp [ilosc]");
- if(GetPlayerMoney(playerid) < 100)
- return SendClientMessage(playerid, -1, "Nie posiadasz wystarczającej ilości pieniędzy, aby móc uzupełnić życie.");
- format(text, sizeof(text), "Twój stan HP został pomyślnie uzupełniony na %f, kosztem $100.", zycie);
- SendClientMessage(playerid, -1, text);
- SetPlayerHealth(playerid, zycie), GivePlayerMoney(playerid, -100);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment