13.04.2015, 10:02
what includes or plugins should i use on filterscript and how to load it up
hostname My Game Mode gamemode0 GM 1 filterscripts NAME_OF_YOUR_FILTERSCRIPT_HERE FILTERSCRIPT_2 FILTERSCRIPT_3 plugins streamer announce 0
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 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 |
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;
}