26.08.2011, 15:59
Well i made some kind of drugsystem when a player picks up a drug package somewhere the player will
have a variablelike...canabis..weed...bla bla bla like this;
DrugType[playerid][Canabis] = 1;
DrugType[playerid][Weed] = 1;
it works fine if i use just one DrugType[playerid][Crack] == 1) under onplayerpickup
but i want the pickup gives the player not only crack but also weed as a value so i thought maybe i can make it random each time a player picks up the same pickup
Thats where it all started
EDIT: yes the player should be able to have many drugtypes at once..hmm alright maybe i should explain the whole thing XD
have a variablelike...canabis..weed...bla bla bla like this;
DrugType[playerid][Canabis] = 1;
DrugType[playerid][Weed] = 1;
it works fine if i use just one DrugType[playerid][Crack] == 1) under onplayerpickup
but i want the pickup gives the player not only crack but also weed as a value so i thought maybe i can make it random each time a player picks up the same pickup
Thats where it all started
EDIT: yes the player should be able to have many drugtypes at once..hmm alright maybe i should explain the whole thing XD