[FilterScript] I Feel i became better in scripting now :)
#1

Second Filter Script by me Eddy i wish you like it and please +Rep me if you like it

Information:

1- Login & Register System

2- CMDS : { setvip for rcon admin , viplocker for vip members }

3- things different { viplocker is used in a dialog and not at a certain place it can be used any where }

4- This [FS] is scripted using DCMD

Download :

Solid File

Paste Bin

Credits:

1- DracoBlue for Dini

2- My Teacher Mike_Peterson

3- Me the scripter Eddy
Reply
#2

Please provide pastebin link in future.
Reply
#3

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Please provide pastebin link in future.
Done
Reply
#4

Any one else ?
Reply
#5

The title should be changed to the name of this script
Reply
#6

can you please say your opinion the script try it out or something
Reply
#7

It looks good, but again, the indentation really should be better (so you can remove the #pragma tabsize 0 too).
Also, ZCMD is much faster and easier to use then DCMD. When you use ZCMD you also don't have to use the '#pragma unused params'. Dnd there is SSCANF2 too, which is also better then the first SSCANF.
I also noticed you used 'strtok' in OnPlayerCommandText without doing something with it futher.
1- You shouldn't use STROK
2- When you use SSCANF(2), STRTOK isn't needed anymore.
And as last, DINI is very outdated and slow. You'd better use something as DJSON (also made by DraconBlue. Works almost the same as DINI) and Y_INI (which is harder to use then DJSON. I'd recommend you to use DJSON).
And I see this script is using the 'scriptfiles' folder, with more directories. In your .rar download you should include these folders: When a beginner is using this, his server will crash because the most beginners don't know about the scriptfiles.

Did you perhaps use some kind of (outdated) tutorial to make this?
Reply
#8

yes i found a tutorial so i learnt it and script this one but thanks
Reply
#9

Rep+ for effort , but u should take a look at this

https://sampforum.blast.hk/showthread.php?tid=273088
Reply
#10

Looks good but messy, You still have the OnGameModeInit in there.

pawn Код:
51.
public OnGameModeInit()

 52.
{

 53.
        // Don't use these lines if it's a filterscript

 54.
        SetGameModeText("Blank Script");

 55.
        AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

 56.
        return 1;

 57.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)