31.03.2009, 18:31
Level System Version 1.7
What is this?
This is an basic level system with one command (/setlevel)
You got the option to make more commands (read down)
The level are saved in an file, ive used dudb
How to make an new command for some levels only?
Make in the orginal script under the /setlevel command the next:
How can i make an command that peple with level 3 and higher can use?
Simply, look down the code above. You see there the following: if(Level[playerid] == 1)
That mean: Is player level 1? To mak it lower or higher then the number you have you can put < or > before the number
Example:
Higher then level 1
Lower then level 1
How to install?
1. Download the .zip
2. Extract evrything
3. Put the include files in your pawno/includes folder
4. Put Level.pwn & Level.amx in your filterscripts folder
5. Open your server.cfg and add Level to your Filterscripts line!
Download:
http://pastebin.com/f5d3e453e
http://www.filefactory.com/file/af81...Sysem_V1_7_rar
Oxside
What is this?
This is an basic level system with one command (/setlevel)
You got the option to make more commands (read down)
The level are saved in an file, ive used dudb
How to make an new command for some levels only?
Make in the orginal script under the /setlevel command the next:
Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0) { if(Level[playerid] == 1) // The last number is the level wich the player must be to use this level! { // do here your thing the player can if he is the right level } else { // do here your thing with the player if he is not the right level } return 1; }
Simply, look down the code above. You see there the following: if(Level[playerid] == 1)
That mean: Is player level 1? To mak it lower or higher then the number you have you can put < or > before the number
Example:
Higher then level 1
Код:
if(Level[playerid] >= 1)
Код:
if(Level[playerid] <= 1)
1. Download the .zip
2. Extract evrything
3. Put the include files in your pawno/includes folder
4. Put Level.pwn & Level.amx in your filterscripts folder
5. Open your server.cfg and add Level to your Filterscripts line!
Download:
http://pastebin.com/f5d3e453e
http://www.filefactory.com/file/af81...Sysem_V1_7_rar
Oxside