29.09.2014, 17:31
pawn Код:
CMD:smokeweed(playerid, params[])
{
if(!GetPlayerWeed(playerid)) return SendClientMessage(playerid, GREY, "You don't have any weed left!");
{
new Float:health; GetPlayerHealth(playerid, health);
if(health > 75) return SendClientMessage(playerid, GREY, "You cannot smoke weed if your health is above 75!");
{
new string[128];
ApplyAnimation(playerid, "JST_BUISNESS", "smoke_01", 4.1, 1, 1, 1, 0, 1, 1);
SetPlayerHealth(playerid, health+25);
format(string, sizeof(string), "%s takes out a joint and smokes some weed.", GetOOCName(playerid));
SendNearByMessage(playerid, -1, string, 4);
}
}
return 1;
}