16.04.2014, 11:32
pawn Код:
CMD:drugs(playerid, params[])
{
new str[128], amount;
Drugs[playerid] -= amount;
Deffect[playerid] = 0;
DrugTimer[playerid] = SetTimerEx("DrugsE", 1300, 3, "ii", playerid, amount);
SetTimerEx("Busy", 5000,0, "ii", playerid, false);
ApplyAnimation(playerid, "SMOKING","M_smk_in", 4.2, 0, 0, 0, 0, 0, 1);
busyAnim[playerid] = true;
// GameTextForPlayer(playerid,"~w~Press ~b~~k~~VEHICLE_ENTER_EXIT~ ~w~to stop animation",3000,3);
GameTextForPlayer(playerid, "~w~on drugs", 3000, 3);
format(str, 128, "took %d Of Drugs. your health will refill.", amount);
SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
return 1;
}