02.02.2009, 15:53
I have good drug system but i want to add some effects like if u use weed thn the weather chnge to very weird like all orange or stuff like that Could someone help me to add tht effect?
Also does someone know ID of those Weed plants u had to burn at GTA San Andreas single player..?
I have this code but it has no effects on it
Also does someone know ID of those Weed plants u had to burn at GTA San Andreas single player..?
Код:
if(strcmp(cmd, "/usedrug", true) == 0) { new Grams; if(pDrugs[playerid][DrugStatus] == 0) return SendClientMessage(playerid, COLOR_WHITE, "* You have no Drugs to use"); Global = strtok(cmdtext, Index); if(!strlen(Global)) return SendClientMessage(playerid, COLOR_WHITE, "* Usage: /usedrug [GRAMS]"); Grams = strval(Global); if(pDrugs[playerid][DrugGrams] < Grams) return SendClientMessage(playerid,COLOR_WHITE,"You don't have that many grams"); pDrugs[playerid][DrugGrams] -= Grams; format(Data, 256, "Drugs/%s.ini", pName(playerid)); dini_IntSet(Data, "Drug-Grams", pDrugs[playerid][DrugGrams]); format(Data, 256, "* You've Smoked %d grams Remaining: %d", Grams,pDrugs[playerid][DrugGrams]); SendClientMessage(playerid, COLOR_GREEN, Data); new Float:health; GetPlayerHealth(playerid, health); SetPlayerHealth(playerid, health + (Grams * 5.0)); if(pDrugs[playerid][DrugGrams] < 1) {