SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Thread Tools Display Modes
Old 16/03/2017, 10:46 AM   #1
Big Clucker
Join Date: May 2016
Location: Philippines!!
Posts: 54
Reputation: 7
Default XP System [Y_INI]

XP System

Today, i bring you an XP Filterscript, Everytime you kill a player, you gain +2 XP! (editable), you can add more features to your script doing it, it also has a textdraw with it!

Needed Includes





Y_Less for Y_ini and sscanf
Zeex for Zcmd
RyderX, for helping meh a-lot
Samp Team, for a_samp


Click Here!
SeanDenZYR is offline   Reply With Quote
Old 16/03/2017, 12:57 PM   #2
Scripter18's Avatar
Join Date: Aug 2015
Location: Croatia
Posts: 563
Reputation: 62
Default Re: XP System [Y_INI]

Code is so messy and endless! + for effort

- Move to SQL & MYSQL
Scripter18 is offline   Reply With Quote
Old 16/03/2017, 01:20 PM   #3
Eoussama's Avatar
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 584
Reputation: 69
Default Re: XP System [Y_INI]

Nice, but you can do better
PHP Code:
if(sscanf(params"ii"targetidmaxxp)) return SendClientMessage(playerid0xF8F8F8FFF"Syntax: {F00f00}/givexp [ID] [amount]"); 
use u specifire instead of i when referring to players, so you can use it this way /givexp SeanDenZYR 30 || /givexp SeanD 30
Eoussama is online now   Reply With Quote
Old 16/03/2017, 02:12 PM   #4
Huge Clucker
Join Date: Mar 2016
Posts: 372
Reputation: 154
Default Re: XP System [Y_INI]

128 cells? That's a waste. Plus you can have the name in an array at OnPlayerConnect, better than using GetPlayerName all the time.
PHP Code:
#define PATH "XPUsers/%.ini"

new string[128],playername[MAX_PLAYER_NAME];
Use PlayerTextDraws (Here)
PHP Code:
new Text:Textdraw1[MAX_PLAYERS]; 
250 Cells, another waste.
PHP Code:
new string[250]; new name[MAX_PLAYER_NAME]; new kname[MAX_PLAYER_NAME];
format(string,sizeof(string),"-DM- {F00f00}%s(%i) {ffffff}has killed {f00f00}%s(%i) {FFFFFF}and got {f00f00} +2 XP!",kname,killerid,name,playerid); 
Plus there is other things to improve, and change the specifier as mentioned by Eoussama.

Jelly23 is online now   Reply With Quote
Old 16/03/2017, 02:20 PM   #5
Huge Clucker
Join Date: Jun 2016
Posts: 305
Reputation: 2
Default Re: XP System [Y_INI]

There are much better systems same like this. GJ anyway
Hunud is offline   Reply With Quote
Old 16/03/2017, 03:10 PM   #6
Join Date: Oct 2016
Location: Lebanon,Beirut Rank: SA-MP Scripter
Posts: 609
Reputation: 53
Default Re: XP System [Y_INI]

nicely done
RyderX is offline   Reply With Quote
Old 16/03/2017, 03:25 PM   #7
Join Date: Jul 2015
Location: Fort Carson
Posts: 525
Reputation: 68
Default Re: XP System [Y_INI]

Meh, I don't like the way it's coded don't you guys give up? You just want to release anything for earning reputation and valueless releases aren't going to profit you anything more than being disrespected and rated as 1-star coders.

Much mess in the code, not even readable. And why are you still using INI? Learn MySQL or SQLite I can guarantee you that you'll learn them faster than any INI processor!

Keep improving at least.
" Currently playing Lords OF War "
Variable™ is online now   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Cross Admin System V1.3 [updated] Anti Cheat(sscanf, dcmd,y_ini) and lots more ! No.1 Admin System CROSS_Hunter Filterscripts 9 20/07/2014 06:45 AM
Y_INI Car system Mey6155 Scripting Help 0 26/05/2014 03:57 PM
[FilterScript] Cross Admin System V1.2 [updated] + Added IRC System + Anti Cheat(sscanf, dcmd,y_ini) No.1 Admin System CROSS_Hunter Filterscripts 21 02/01/2013 06:32 PM
[FilterScript] Cross Admin System V1.1 [updated] + Added V.I.P System(sscanf, dcmd,y_ini) No.1 Admin System CROSS_Hunter Filterscripts 8 10/09/2012 11:18 AM

All times are GMT. The time now is 08:08 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.