If you want to use a filterscript then you should put the filterscript in your "filterscripts" folder and add the name of the file name after "filterscripts" in server.cfg.
after that,run the server.
if you want to add script to your gamemode then you should copy from the target(script) parts by parts.
for example:
the script you want to copy from
Code:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xC0C0C0,"Hi,You're connected :D");
GivePlayerWeapon(playerid,31,301);
return 1;
}
the script you want to copy to:
Code:
public OnPlayerConnect(playerid)
{
GivePlayerWeapon(playerid,32,301);
return 1;
}
paste it under the callback "OnPlayerConnect"
so after paste it should look like this:
Code:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xC0C0C0,"Hi,You're connected :D");
GivePlayerWeapon(playerid,31,301);
GivePlayerWeapon(playerid,32,301);
return 1;
}
EDIT: Oh,somebody answered before me.