Drug System
#1

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..?
Код:
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) 
{
I have this code but it has no effects on it
Reply


Messages In This Thread
Drug System - by Newbz0r - 02.02.2009, 15:53
Re: Drug System - by Auto-Sized - 02.02.2009, 19:40
Re: Drug System - by matt2127 - 02.02.2009, 19:47
Re: Drug System - by Newbz0r - 03.02.2009, 11:13
Re: Drug System - by John_Harper - 28.06.2012, 05:39

Forum Jump:


Users browsing this thread: 1 Guest(s)