28.01.2011, 18:10
You're using the local function 'a'. Make it global. So:
And I don't know that fast what the best id for drug plant is. Try looking on samp wiki
pawn Код:
//In the range of includes:
new PlayerDrugWeed[MAX_PLAYERS] = (-1);
//In the command:
PlayerDrugWeed[playerid] = CreateObject(...);
//To destroy:
DestroyObject(PlayerDrugWeed[playerid]);
PlayerDrugWeed[playerid] = (-1);