01.12.2013, 08:24
You will need to place CreateDynamicObject lines in OnGameModeInit callback. The variables must be placed at the top. You will need Incognito's streamer plugin and Zeex's ZCMD.
pawn Код:
#include <a_samp>
#include <streamer>
#include <zcmd>
new gate1, gate2, gate3, gate4;
public OnFilterScriptInit() // If it is placed in a gamemode, it'd be placed at OnGameModeInit.
{
// map lines here.
}
// Rest of the commands can be placed anywhere but after the includes and commands shouldn't be in the callback.