22.01.2010, 18:32
OnVehicleMod doesn't work in filterscript
Gamemode:
FS:
Console:
I tested this with adding the component in OnPlayerConnect, but console shows the same. Does Somebody have an idea, how to fix it?
Gamemode:
Код:
#include <a_samp> main() { } public OnGameModeInit() { AddVehicleComponent(AddStaticVehicle(411, 0.0, 0.0, 10.0, 0.0, 50, 254), 1010); return 1; }
Код:
#include <a_samp> public OnVehicleMod(playerid, vehicleid, componentid) { print("lol"); return 1; }
Код:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3a R4, ©2005-2009 SA-MP Team [20:31:26] [20:31:26] Server Plugins [20:31:26] -------------- [20:31:26] Loaded 0 plugins. [20:31:26] [20:31:26] Filter Scripts [20:31:26] --------------- [20:31:26] Loading filter script 'FS.amx'... [20:31:26] Loaded 1 filter scripts. [20:31:26] Number of vehicle models: 1