[HELP] Textuer +REP
#1

what includes or plugins should i use on filterscript and how to load it up
Reply
#2

Hi McOwens,

You can create filterscripts by placing your name_of_filterscript.amx in the filterscripts folder in your server folder. You will need to edit your server.cfg and place the name of the filterscript on the filterscript line.

Код:
hostname My Game Mode
gamemode0 GM 1
filterscripts NAME_OF_YOUR_FILTERSCRIPT_HERE FILTERSCRIPT_2 FILTERSCRIPT_3
plugins streamer
announce 0
When you run your server it will load the filterscripts that you have defined in your server.cfg.

You can use any plugins in your filterscript, you must also define your plugins in server.cfg.

Reading over this wiki page should help you out.
https://sampwiki.blast.hk/wiki/Controlling_Your_Server

This wiki page is slightly outdated but should give you a basic idea of what you need to do to create filterscripts.
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Reply
#3

Quote:
Originally Posted by MEW273
Посмотреть сообщение
Hi McOwens,

You can create filterscripts by placing your name_of_filterscript.amx in the filterscripts folder in your server folder. You will need to edit your server.cfg and place the name of the filterscript on the filterscript line.

Код:
hostname My Game Mode
gamemode0 GM 1
filterscripts NAME_OF_YOUR_FILTERSCRIPT_HERE FILTERSCRIPT_2 FILTERSCRIPT_3
plugins streamer
announce 0
When you run your server it will load the filterscripts that you have defined in your server.cfg.

You can use any plugins in your filterscript, you must also define your plugins in server.cfg.

Reading over this wiki page should help you out.
https://sampwiki.blast.hk/wiki/Controlling_Your_Server

This wiki page is slightly outdated but should give you a basic idea of what you need to do to create filterscripts.
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
oh bro ty but i mean how to load up Texture maps
Reply
#4

Hi McOwens,

There is a tutorial for texturing here:
https://sampforum.blast.hk/showthread.php?tid=359356
And an actual filterscript that can help you here:
https://sampforum.blast.hk/showthread.php?tid=471474

SetObjectMaterial This is an example taken from the SAMP wiki:
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(!strcmp(cmdtext,"/mycommand",true))
    {
        new Float:X, Float:Y, Float:Z;
        new myobject;
        GetPlayerPos(playerid, X, Y, Z);
        myobject = CreateObject(19371, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);
        SetObjectMaterial(myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
        //Replaces the texture of our object with the texture of object 19341
        return 1;
    }
    return 0;
}
Basically, you need to create your object:
new myobject;
myobject = CreateObject(19371, 10, 10, 10, 0.0, 0.0, 0.0, 300.0);
Then use SetObjectMaterial:
SetObjectMaterial(myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
The syntax for SetObjectMaterial is:
SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)