SA-MP Forums Archive
Drug System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Drug System (/showthread.php?tid=64160)



Drug System - Newbz0r - 02.02.2009

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


Re: Drug System - Auto-Sized - 02.02.2009

It was asked before but here 3409. Look for weather id's on samp wiki or have a look at Seif's fader in filterscripts


Re: Drug System - matt2127 - 02.02.2009

use -66 and yes it is negative 66


Re: Drug System - Newbz0r - 03.02.2009

thnx alot gonna try thm out


Re: Drug System - John_Harper - 28.06.2012

Where do you replace the -66 , i totally forgot.