25.12.2009, 20:14
Looks nice! Can you upload it to pastebin? Also i have 2 suggestions. One would be to make it possible to return the id with new. Like
And the second, add a variable true/false so you can choose if you want to create an object or not.
pawn Code:
new sam1 = AddStaticSAM(X,Y,Z);
pawn Code:
AddStaticSAM(X,Y,Z,1);//It will create sam object
AddStaticSAM(X,Y,Z,0);//It will NOT create sam object