20.05.2015, 02:47
pawn Код:
/* I'm assuming you use incognito's streamer */
#define MAX_GARBAGE_BINS 30
#define GARBAGE_MDL_ID 3035
enum EGarbageBinInfo {
EGBModelID,
Float:GarbageBinX,
Float:GarbageBinY,
Float:GarbageBinZ,
Float:GarbageBinRotX,
Float:GarbageBinRotY,
Float:GarbageBinRotZ,
EGBObjID,
};
new GarbageBins[MAX_GARBAGE_BINS][EGarbageBinInfo] = {
//MDL, X, Y, Z, RX, RY, RZ
//Add as many as you want
{GARBAGE_MDL_ID, 2069.4067, -1767.8309, 13.5622, 0.0, 0.0, 90.0},
{GARBAGE_MDL_ID, 2069.4067, -1767.8309, 13.5622, 0.0, 0.0, 90.0}
};
OnGameModeInit() {
for(new i=0; i<sizeof(GarbageBins); i++) {
GarbageBins[i][EGBObjID] = CreateDynamicObject(GarbageBins[i][EGBModelID],GarbageBins[i][GarbageBinX],GarbageBins[i][GarbageBinY],GarbageBins[i][GarbageBinZ]-0.30, GarbageBins[i][GarbageBinRotX], GarbageBins[i][GarbageBinRotY], GarbageBins[i][GarbageBinRotZ]);
}
return 1;
}
OnGameModeExit() {
for(new i=0; i<sizeof(GarbageBins); i++) {
DestroyDynamicObject(GarbageBins[i][EGBObjID]);
}
return 1;
}