Help Me please.
#1

Hello
if i want use a FilterSript then what i need to do? i need just download on my server file?
and if i want add some script in pawno then i need copy pest in pawno last line or where?
Reply
#2

Just when you download,copy the .pwn and .amx files and paste them at filterscripts folder now at server.cfg you have a line like this:

Code:
filterscripts
ok you just need to add the filterscript name

Example:

Code:
filterscripts DM
Reply
#3

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.
Reply
#4

Every type in PAWNO is been put in a certain place like Commands are put under OnPlayerCommandText and so on and for the Filterscript just put it in a FILE called Filterscripts in you server file so it will be filterscripts/"FILTERSCRIPT".amx
and go in your server.cfg file and write beside FILTERSCRIPTS "NAME OF FS"
Reply
#5

Okey guys thanks
i want tow know something..
how to use zcmd?
CMD:healall,plugins[])
...like this please explain me...
Reply
#6

Check this tutorial: https://sampforum.blast.hk/showthread.php?tid=280476
Reply
#7

Example to use ZCMD :

Code:
CMD:weapons(playerid, params[])
{
GivePlayerWeapon(playerid, 27, 500);
return true;
}
Code:
GivePlayerWeapon(playerid, 27, 500);
The '27' in the bracket stands for the weapon ID, you can check weapon ID's here : https://sampwiki.blast.hk/wiki/Weapons and '500' stands for number of ammo.


Thank you,
Hope i helped you.
Reply
#8

Wow Thanks can you help me again? i can rep you for that..
can you please tell me if i want add a cmd where i need add it? i mean i know i need add it on my Gamemode Pawno File but i want to know where? in last of the pawno? or where
Reply
#9

That's your wish but if you do it in the last of pawno it would be easy for you to remember,
Like a seperate section for commands
Reply
#10

If you want to use ZCMD then do NOT place the commands inside the OnPlayerCommandText callback, just place it outside any callback, I suggest at the end of the script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)