14.07.2013, 21:46
Here's the one more example how to create your own event (example for the type EVENT_TYPE_OBJECT_FALL):
Video:
https://*****.com/70294299
Code:
Video:
https://*****.com/70294299
Code:
pawn Код:
new
eventid, a, b, Float:rot;
for(a = 0; a < 5; a++)
{
for(b = 0; b < 8; b++)
{
if(!(b % 2)) rot = 45.0;
else rot = 135.0;
CreateEventObject(eventid, 3851, -4800.0 + (11.3 * a), -4850.0 + (2.84 * b), 20.0, 0.0, rot, 90.0, 100.0);
}
}
SetEventName(eventid, "Glass above Water 3");
SetEventType(eventid, EVENT_TYPE_OBJECT_FALL);
SetEventRequiredPlayers(eventid, 10);
SetEventOpen(eventid, false);
SetEventActive(eventid, false);
SetEventHeightLimit(eventid, 2.5); // Only for events with falling type.
SetEventWinScore(eventid, 9);

