06.07.2012, 20:59
Код:
if (strcmp("/usedrug Heroin", cmdtext, true, 14) == 0) { if(Heroin[playerid] == 0) return SendClientMessage(playerid, -1, "Ти нямаш хероин иди си купи"); SendClientMessage(playerid, 0xFF0000AA, "Ти изпозва 1 грам Хероин"); SendClientMessage(playerid, 0xFF0000AA, "За да отмине ефекта напиши /drugsoff"); Heroin[playerid]--; SetPlayerDrunkLevel(playerid, 900); SetPlayerWeather(playerid, 21); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); return 1; }