Please help! :D
#1

Can someone make me a filterscript that:

Loads when the server is turned on please?

This is what needs to be in the filterscript:


AddStaticVehicle(522,2796.0242,-1571.8405,10.4870,271.8347,1,1); // - this vehicle will be a PCJ-600(461) and colour ID 1 (white)


AddStaticVehicle(522,2796.1746,-1575.8713,10.4694,270.9300,1,1); // - this vehicle will be an FCR-900(521) and colour id 1 (white)

AddStaticVehicle(461,2796.1514,-1584.9053,10.5263,272.2281,1,1); // - this vehicle will be an FCR-900(521) and colour id 1 (white)

AddStaticVehicle(461,2796.1655,-1588.9225,10.5099,268.0545,1,1); // - this vehicle will be a PCJ-600(461) and colour ID 1 (white)

AddStaticVehicle(562,2795.9612,-1580.4926,10.5866,269.7886,0,0); // - this vehicle will be a bullet(541) and colour id 0 1 (black with white stripe)



Then also, an interior with a marker (to enter the interior) at this point:

AddPlayerClass(165,2795.5496,-1619.3833,10.9219,259.2963,0,0,0,0,0,0); //

and the interior should be:

SF gym 6 774.213989,-48.924297,1000.585937
Reply
#2

About the vehicles, just put the code you got under OnGameModeInit, or if you are using a filterscript, OnFilterScriptInit!
Reply
#3

I don't understand ;o


I'd rather someone just made me it completely thanks
Reply
#4

Quote:
Originally Posted by lsrgta
Посмотреть сообщение
Can someone make me a filterscript that:

Loads when the server is turned on please?

This is what needs to be in the filterscript:


AddStaticVehicle(522,2796.0242,-1571.8405,10.4870,271.8347,1,1); // - this vehicle will be a PCJ-600(461) and colour ID 1 (white)


AddStaticVehicle(522,2796.1746,-1575.8713,10.4694,270.9300,1,1); // - this vehicle will be an FCR-900(521) and colour id 1 (white)

AddStaticVehicle(461,2796.1514,-1584.9053,10.5263,272.2281,1,1); // - this vehicle will be an FCR-900(521) and colour id 1 (white)

AddStaticVehicle(461,2796.1655,-1588.9225,10.5099,268.0545,1,1); // - this vehicle will be a PCJ-600(461) and colour ID 1 (white)

AddStaticVehicle(562,2795.9612,-1580.4926,10.5866,269.7886,0,0); // - this vehicle will be a bullet(541) and colour id 0 1 (black with white stripe)



Then also, an interior with a marker (to enter the interior) at this point:

AddPlayerClass(165,2795.5496,-1619.3833,10.9219,259.2963,0,0,0,0,0,0); //

and the interior should be:

SF gym 6 774.213989,-48.924297,1000.585937
For the cars
if its a filterscript
then under OnFilterScriptInIt()


pawn Код:
AddStaticVehicle(522,2796.0242,-1571.8405,10.4870,271.8347,1,1);
AddStaticVehicle(522,2796.1746,-1575.8713,10.4694,270.9300,1,1);
AddStaticVehicle(461,2796.1514,-1584.9053,10.5263,272.2281,1,1);
AddStaticVehicle(461,2796.1655,-1588.9225,10.5099,268.0545,1,1);
AddStaticVehicle(562,2795.9612,-1580.4926,10.5866,269.7886,0,0);
else if its a regular script(gamemode)
then under OnGameModeInIt()


pawn Код:
AddStaticVehicle(522,2796.0242,-1571.8405,10.4870,271.8347,1,1);
AddStaticVehicle(522,2796.1746,-1575.8713,10.4694,270.9300,1,1);
AddStaticVehicle(461,2796.1514,-1584.9053,10.5263,272.2281,1,1);
AddStaticVehicle(461,2796.1655,-1588.9225,10.5099,268.0545,1,1);
AddStaticVehicle(562,2795.9612,-1580.4926,10.5866,269.7886,0,0);
same with the marker
pawn Код:
AddStaticPickup(modelid,type,2795.5496,-1619.3833,10.9219,259.2963,0);

Find out more about addstaticpickup https://sampwiki.blast.hk/wiki/AddStaticPickup

now....
add this to your enter command
lets say you got
pawn Код:
if(strcmp(cmdtext,"/enter",true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,5,x,y,z))
    {
        SetPlayerPos(playerid,x,y,z);
    }
}
then add this
pawn Код:
if(strcmp(cmdtext,"/enter",true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,5,x,y,z))
    {
        SetPlayerPos(playerid,x,y,z);
    }
    else if (IsPlayerInRangeOfPoint(playerid,3,2795.5496,-1619.3833,10.9219,259.2963))
    {
        SetPlayerPos(playerid,774.213989,-48.924297,1000.585937);
        SetPlayerInterior(playerid,6);
    }
}
now the same for the exit command
just put the player back to the old position

pawn Код:
if(strcmp(cmdtext,"/exit",true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,5,x,y,z))
    {
        SetPlayerPos(playerid,x,y,z);
    }
    else if (IsPlayerInRangeOfPoint(playerid,3,774.213989,-48.924297,1000.585937))
    {
        SetPlayerPos(playerid,2795.5496,-1619.3833,10.9219,259.2963);
        SetPlayerInterior(playerid,0);
    }
}
And there you go !
Reply
#5

Thanks so much!

Just to verify, do i make an empty pawno file, delete all the stuff in it, then just copy and paste all that stuff?
Reply
#6

U wanna make a filterscript or you just wanna add this to your GM ? (GameMode)

Edit : Send me a private message please ...
Reply
#7

Quote:
Originally Posted by Elka_Blazer
Посмотреть сообщение
For the cars
if its a filterscript
then under OnFilterScriptInIt()


pawn Код:
AddStaticVehicle(522,2796.0242,-1571.8405,10.4870,271.8347,1,1);
AddStaticVehicle(522,2796.1746,-1575.8713,10.4694,270.9300,1,1);
AddStaticVehicle(461,2796.1514,-1584.9053,10.5263,272.2281,1,1);
AddStaticVehicle(461,2796.1655,-1588.9225,10.5099,268.0545,1,1);
AddStaticVehicle(562,2795.9612,-1580.4926,10.5866,269.7886,0,0);

I get this

C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(3) : error 010: invalid function or declaration
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(3) : error 010: invalid function or declaration
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(4) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(4) : error 010: invalid function or declaration
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(5) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(5) : error 010: invalid function or declaration
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(6) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(6) : error 010: invalid function or declaration
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(7) : warning 203: symbol is never used: "AddStaticVehicle"
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(7) : warning 203: symbol is never used: "OnFilterScriptInIt"
C:\Users\Yoshizawa Masato\Desktop\carstriad.pwn(7) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Reply
#8

You dont need to clean your script ...
just add this ....

Please , visit here :
https://sampforum.blast.hk/showthread.php?tid=92

You gotta know the scripting basics .
Reply
#9

But I'm putting it in a filterscript, not in the gm
Reply
#10

Also, I can't make it autorun
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)