#1

I want add this vehicles in my filterscript, when i added it like that didn't work but the server read it.
Code:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Mapps by FrAnKiN");
	print("--------------------------------------\n");
        AddStaticVehicle(470,-539.5731,2583.0901,53.4054,269.7305,43,0); // ArmyPetrol
        AddStaticVehicle(470,-539.5797,2575.6560,53.4073,269.7451,43,0); // ArmyPetrol
        AddStaticVehicle(470,-539.3989,2603.7424,53.4070,268.8806,43,0); // ArmyPetrol
        AddStaticVehicle(470,-539.2205,2611.0137,53.4081,269.3094,43,0); // ArmyPetrol
        AddStaticVehicle(601,-539.0443,2618.2939,53.1731,270.0811,1,1); // ArmyPetrol
        AddStaticVehicle(601,-539.9467,2568.3066,53.1742,269.5411,1,1); // ArmyPetrol
        AddStaticVehicle(471,-507.8436,2603.5718,52.8942,89.6744,103,111); // ArmyPetrol
        AddStaticVehicle(471,-507.5851,2608.4663,52.8958,87.9629,120,114); // ArmyPetrol
        AddStaticVehicle(471,-507.4674,2613.4373,52.8966,88.4572,74,91); // ArmyPetrol
        AddStaticVehicle(468,-508.1406,2582.7700,53.0824,89.7754,46,46); // ArmyPetrol
        AddStaticVehicle(468,-508.0882,2577.8809,53.0825,88.0080,53,53); // ArmyPetrol
        AddStaticVehicle(468,-508.1236,2573.0374,53.0838,88.5372,3,3); // ArmyPetrol
        AddStaticVehicle(487,-558.7699,2604.1753,66.0073,266.5024,26,57); // ArmyPetrol
        AddStaticVehicle(487,-559.8318,2584.3130,66.0140,266.1505,29,42); // ArmyPetrol
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif
Reply
#2

Can someone post anything to help me please?
Reply
#3

You tried directly in your gm?
Reply
#4

PHP Code:
#include < a_samp >
#include < streamer > //https://sampforum.blast.hk/showthread.php?tid=102865
public OnFilterScriptInit()
{
AddStaticVehicleEx(modelidFloat:spawn_xFloat:spawn_yFloat:spawn_zFloat:anglecolor1color2respawn_delay); //https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
CreateDynamicObject // Incognito's Streamer Plugin / SA-MP AddStaticVehicleEx - convertffs.com
print("\n--------------------------------------");
print(
" Mapps by FrAnKiN");
print(
"--------------------------------------\n");
return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;

Reply
#5

The problem is that you have deleted this
Code:
#define FILTERSCRIPT
And since #if defined FILTERSCRIPT exists, everything under it, until #else, won't be called.
Reply
#6

Quote:
Originally Posted by Stinged
View Post
The problem is that you have deleted this
Code:
#define FILTERSCRIPT
And since #if defined FILTERSCRIPT exists, everything under it, until #else, won't be called.
Worked thanks for your helping.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)