Drugs Overdose - 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: Drugs Overdose (
/showthread.php?tid=497689)
Drugs Overdose -
AroseKhanNiazi - 28.02.2014
SLOVED
Re: Drugs Overdose -
AroseKhanNiazi - 28.02.2014
?? ??
Re: Drugs Overdose -
AroseKhanNiazi - 28.02.2014
SOLVED
Re: Drugs Overdose -
Ceez - 28.02.2014
Make sure ontop of script you have
ON_DRUGS [MAX_PLAYERS]
And not just [playerid], that would only apply the thing to ID 0.
Re: Drugs Overdose -
AroseKhanNiazi - 01.03.2014
Quote:
Originally Posted by Ceez
Make sure ontop of script you have
ON_DRUGS [MAX_PLAYERS]
And not just [playerid], that would only apply the thing to ID 0.
|
i have heave it
Код:
new ON_DRUGS[MAX_PLAYERS];
Re: Drugs Overdose -
AroseKhanNiazi - 01.03.2014
can u tell how can i define the amount taken
like if
Код:
if(drugstaken > 60)
{
//here all overdose code
}
else
{
//the code if less than 60
}
return 1;
Re: Drugs Overdose -
AroseKhanNiazi - 01.03.2014
anyone
Re: Drugs Overdose -
AroseKhanNiazi - 02.03.2014
help plz all it does is random i want if he takes the amount more than 60 he dies else drugs sucess
Re: Drugs Overdose -
AroseKhanNiazi - 05.03.2014
ANYONE PLZ HELP ME
Re: Drugs Overdose -
Avi Raj - 05.03.2014
Quote:
if(drugstaken > 60)
{
//here all overdose code
}
else
{
//the code if less than 60
}
return 1;
|
It should be :-
pawn Код:
if(drugstaken > 60)
{
//here all overdose code
}
else if
{
//the code if less than 60
}
return 1;