Putting a filterscript into the game mode
#1

Hello, I have quite a big problem. I have recently downloaded and added a filterscript to my roleplay server.

Its a vehicle ownership script and as I have a seperate server-side coded money system, which is in the gamemode, i need to put this filterscript into my gamemode.

However, I have now put it into my gamemode and it compiles with no errors or warnings. BUT, when i go in-game and type the commands they dont do anything.

Example:
before the filterscript was put into the gamemode:

type /veh - Intructions on how to use the command : /veh [MODELID]
type /veh 400 - the car is spawned

After put into the gamemode:

type /veh - Instructions on how to use the command : /veh [MODELID]
type /veh 400 - The car is not spawned and the instructions on how to use the command are shown : /veh [MODELID]

Anyone got any idea how to fix this?
Thanks.

By the way, its dcmd if you need to know.
Reply
#2

oh okay, so i would need to convert the whole script? :O
Reply
#3

Ok, this post is old, but i want to know how i would put my (move object) filterscript into my gm


Quote:

#include <a_samp>
#include <a_players>
#include <a_objects>
enum pInfo {
pPassword[128],
pLevel,
Level,
pAdmin,
};
//new PlayerInfo[MAX_PLAYERS][pInfo];
new platform;

public OnFilterScriptInit()
{
platform = CreateObject(2669, 2490.2144, -1710.4960, -15.0294, 0.0000, 0.0000, 90.00, 100.0);
CreateObject(19449, 2515.51147, -1723.02832, 6.58340, 0.00000, 0.00000, -90.00000);
CreateObject(19449, 2515.43188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2511.93188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2508.43188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2504.93188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2501.43188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2497.93188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2494.43188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2490.93188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2487.43188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(19449, 2483.93188, -1718.32019, 9.33160, 0.00000, 90.00000, 0.00000);
CreateObject(3354, 2492.89893, -1710.48315, -12.45444, 0.00000, 0.00000, 0.00000);
CreateObject(19388, 2464.83032, -1728.31482, -9.88430, 0.00000, 0.00000, 0.00000);
CreateObject(1506, 2464.77930, -1729.05151, -11.65939, 0.00000, 0.00000, 90.00000);
CreateObject(19431, 2464.82568, -1726.02319, -9.85856, 0.00000, 0.00000, 0.00000);
CreateObject(19431, 2464.79028, -1724.56738, -9.85860, 0.00000, 0.00000, 0.00000);
CreateObject(19431, 2464.81812, -1729.26233, -6.55860, 0.00000, 0.00000, 0.00000);
CreateObject(19431, 2464.81812, -1727.76233, -6.55860, 0.00000, 0.00000, 0.00000);
CreateObject(19431, 2464.81812, -1726.26233, -6.55860, 0.00000, 0.00000, 0.00000);
CreateObject(19431, 2464.81812, -1724.76233, -6.55860, 0.00000, 0.00000, 0.00000);
CreateObject(19378, 2463.72583, -1751.15564, -10.28940, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 2463.75122, -1746.81812, -11.76260, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 2463.75122, -1746.81812, -8.26260, 0.00000, 0.00000, 0.00000);
CreateObject(19378, 2460.37671, -1745.65918, -10.28940, 0.00000, 0.00000, 90.00000);
CreateObject(19378, 2468.51318, -1755.90710, -10.28940, 0.00000, 0.00000, 90.00000);
CreateObject(19366, 2465.83521, -1745.65002, -12.73420, 0.00000, 0.00000, 90.00000);
CreateObject(19366, 2471.83521, -1745.65869, -12.73420, 0.00000, 0.00000, 90.00000);
CreateObject(19366, 2468.83521, -1745.65869, -12.73420, 0.00000, 0.00000, 90.00000);
CreateObject(19325, 2468.47534, -1745.64160, -10.23426, 0.00000, 0.00000, 90.00000);
CreateObject(19377, 2468.47974, -1750.54944, -13.93128, 0.00000, 90.00000, 90.00000);
CreateObject(19439, 2472.44824, -1745.65942, -9.25028, 0.00000, 0.00000, 90.00000);
CreateObject(19377, 2468.43311, -1750.62036, -8.23231, 0.00000, 90.00000, 90.00000);
CreateObject(19377, 2468.43311, -1750.62036, -13.23230, 0.00000, 90.00000, 90.00000);
CreateObject(929, 2471.39429, -1755.26306, -12.29810, 0.00000, 0.00000, 90.00000);
CreateObject(929, 2467.60449, -1755.33826, -12.29810, 0.00000, 0.00000, -90.00000);
CreateObject(943, 2471.79810, -1746.26062, -12.47930, 0.00000, 0.00000, 90.00000);
CreateObject(958, 2468.86255, -1746.13013, -12.33760, 0.00000, 0.00000, -180.00000);
CreateObject(959, 2468.86255, -1746.13013, -12.33760, 0.00000, 0.00000, -180.00000);
CreateObject(3392, 2464.22363, -1750.70740, -13.21718, 0.00000, 0.00000, 180.00000);
CreateObject(3396, 2464.25317, -1754.04700, -13.21720, 0.00000, 0.00000, -180.00000);
CreateObject(3388, 2464.31616, -1748.58643, -13.28300, 0.00000, 0.00000, -180.00000);
CreateObject(3387, 2464.31616, -1747.59094, -13.28300, 0.00000, 0.00000, 180.00000);
CreateObject(3389, 2466.85376, -1746.23889, -13.28300, 0.00000, 0.00000, 90.00000);
CreateObject(3386, 2465.88379, -1746.23889, -13.28300, 0.00000, 0.00000, 90.00000);
CreateObject(16782, 2461.19653, -1710.37317, -15.12787, 0.00000, 0.00000, 0.00000);
CreateObject(19166, 2462.32813, -1710.43286, -16.26825, 0.00000, 0.00000, 0.00000);
CreateObject(19168, 2462.61133, -1715.64771, -15.24670, 90.00000, 90.00000, 27.00000);
CreateObject(19169, 2461.93774, -1714.28503, -15.24670, 90.00000, 90.00000, 27.00000);
CreateObject(19170, 2461.83301, -1706.82312, -15.24670, 90.00000, 90.00000, -27.00000);
CreateObject(19171, 2462.54053, -1705.47571, -15.24670, 90.00000, 90.00000, -27.00000);
CreateObject(261, 2462.32813, -1710.43286, -16.26820, 0.00000, 0.00000, 0.00000);
CreateObject(2614, 2462.46606, -1710.46301, -12.95590, 0.00000, 0.00000, 90.00000);
CreateObject(18646, 2461.35938, -1712.92957, -16.27780, 0.00000, 0.00000, 0.00000);
CreateObject(18646, 2461.33569, -1707.98816, -16.27780, 0.00000, 0.00000, 0.00000);
CreateObject(18646, 2463.49268, -1703.90491, -16.27780, 0.00000, 0.00000, 0.00000);
CreateObject(18646, 2463.43042, -1717.10181, -16.27780, 0.00000, 0.00000, 0.00000);
CreateObject(18649, 2462.40161, -1711.76965, -13.89980, 0.00000, 0.00000, 0.00000);
CreateObject(18649, 2462.43408, -1709.14783, -13.89980, 0.00000, 0.00000, 0.00000);
CreateObject(18649, 2462.90186, -1707.32288, -13.89980, 0.00000, 0.00000, -27.00000);
CreateObject(18649, 2462.88647, -1713.61768, -13.89980, 0.00000, 0.00000, 27.00000);
CreateObject(19325, 2461.31909, -1712.97131, -15.58890, 90.00000, 0.00000, -76.00000);
CreateObject(19325, 2461.29663, -1707.94739, -15.58890, 90.00000, 0.00000, 76.00000);
CreateObject(2930, 2473.43921, -1752.74292, -8.34000, 0.00000, 0.00000, 0.00000);
CreateObject(2930, 2473.43921, -1751.09998, -8.34000, 0.00000, 0.00000, 0.00000);
CreateObject(2930, 2473.43921, -1749.46997, -8.34000, 0.00000, 0.00000, 0.00000);
CreateObject(2930, 2473.43921, -1747.82983, -8.34000, 0.00000, 0.00000, 0.00000);


return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/enterhq", true) == 0)
{
//if(PlayerInfo[playerid][Level]>= 4)
SetObjectRot(platform,0.0, 0.0, -90.00);
SendClientMessage(playerid, 0xB4B5B7FF, "John: Rotation complete!");
return 1;
}
if(strcmp(cmdtext, "/exithq", true) == 0)
{
//if(PlayerInfo[playerid][Level]>= 4)
SetObjectRot(platform, 0.0, 0.0, 90.00);
SendClientMessage(playerid, 0xB4B5B7FF, "John: Rotation complete!");
return 1;
}
return 0;
}

Reply
#4

Quote:
Originally Posted by cray1100
Посмотреть сообщение
Ok, this post is old, but i want to know how i would put my (move object) filterscript into my gm
Is that the way its on your game mode?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)