SA-MP Forums

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

Thread Tools Display Modes
Old 16/03/2017, 11:46 AM   #1
Big Clucker
Join Date: May 2016
Location: Philippines!!
Posts: 82
Reputation: 8
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, 01:57 PM   #2
Bolex_'s Avatar
Join Date: Aug 2015
Location: Croatia
Posts: 558
Reputation: 98
Default Re: XP System [Y_INI]

Code is so messy and endless! + for effort

- Move to SQL & MYSQL
Bolex_ is offline   Reply With Quote
Old 16/03/2017, 02:20 PM   #3
Eoussama's Avatar
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,071
Reputation: 149
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 offline   Reply With Quote
Old 16/03/2017, 03:12 PM   #4
Posts: n/a
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.
  Reply With Quote
Old 16/03/2017, 03:20 PM   #5
Huge Clucker
Join Date: Jun 2016
Posts: 465
Reputation: 11
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, 04:10 PM   #6
Join Date: Oct 2016
Location: Lebanon,Beirut Rank: SA-MP Scripter
Posts: 603
Reputation: 53
Default Re: XP System [Y_INI]

nicely done
RyderX is offline   Reply With Quote
Old 16/03/2017, 04:25 PM   #7
Join Date: Jul 2015
Location: Fort Carson
Posts: 636
Reputation: 109
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.
Variable™ is offline   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 07:45 AM
Y_INI Car system Mey6155 Scripting Help 0 26/05/2014 04: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 07: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 12:18 PM

All times are GMT. The time now is 07:01 AM.

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