SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 16/03/2017, 10:46 AM   #1
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 64
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

a_samp
y_ini
zcmd
sscanf


Screenshots

Soon!

Credits

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


Download

Click Here!
SeanDenZYR is offline   Reply With Quote
Old 16/03/2017, 12:57 PM   #2
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia
Posts: 544
Reputation: 93
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, 01:20 PM   #3
Eoussama
Gangsta
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 815
Reputation: 109
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, 02:12 PM   #4
Jelly23
Guest
 
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];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return 
string
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, 02:20 PM   #5
Hunud
Huge Clucker
 
Join Date: Jun 2016
Posts: 454
Reputation: 8
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
RyderX
Banned
 
Join Date: Oct 2016
Location: Lebanon,Beirut Rank: SA-MP Scripter
Posts: 602
Reputation: 53
Default Re: XP System [Y_INI]

nicely done
RyderX is offline   Reply With Quote
Old 16/03/2017, 03:25 PM   #7
Variable™
Gangsta
 
Join Date: Jul 2015
Location: Fort Carson
Posts: 595
Reputation: 96
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!

1-star.
Keep improving at least.
__________________

Server IP: 5.196.162.107:7777
Website: http://warsamp.tk/ | Forums: http://warsamp.tk/forum | UCP: http://warsamp.tk/UCP-WT
Discord: https://discord.gg/GMxZwnD
Variable™ is online now   Reply With Quote
Reply

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 11:18 PM.


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