SA-MP Forums Archive
[FilterScript] Reputation (Give Rep, Remove Rep, Saving etc!) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Reputation (Give Rep, Remove Rep, Saving etc!) (/showthread.php?tid=396048)



Reputation (Give Rep, Remove Rep, Saving etc!) - Kitten - 29.11.2012


Hi, recently i have not been releasing anything on SA-MP forums due to being busy with projects before i've decided to start releasing again i'm bringing an 'Reputation System' it's pretty simple works plain and simple also saves with Y_INI.

Commands

- /giverep [playerid] [amount] [reason]
- /removerep [playerid] [amount] [reason] (admin only!)
- /rep [playerid] (check anyones rep that is connected to the server!)

Images

Names crossed out due to privacy!




Requirements

- sscanf2 plugin by ******
- zcmd command processor by Zeex
- y_ini by ******

Download
http://pgagaming.net/resources/imgs/repFS/rep.pwn
http://pastebin.com/t3tQP5NS

REMINDER: MAKE SURE TO MAKE THE FOLDER NAME 'Rep' IN YOUR SCRIPTFILES OR ELSE IT WON'T SAVE!

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Thank you all.

Simple note, If you want to use Rep for some such command that requires certain amount of rep to use this example via zcmd command processor.

pawn Код:
CMD:candy(playerid)
{
     if(pRep[playerid][Rep] >= 5) // Or amount of rep they must have or greater than that value!
     {
           SendClientMessage(playerid,-1,"FREE CANDY!");
     }
     return 1;
}




Re: Reputation (Give Rep, Remove Rep, Saving etc!) - changeME - 29.11.2012

Nice man


Re: Reputation (Give Rep, Remove Rep, Saving etc!) - COD - 29.11.2012

Great to see you start releasing again i love your work


Re: Reputation (Give Rep, Remove Rep, Saving etc!) - RipLagger - 29.11.2012

wow, great! i'ill add this to my server


Re: Reputation (Give Rep, Remove Rep, Saving etc!) - zProfessional - 29.11.2012

great


Re: Reputation (Give Rep, Remove Rep, Saving etc!) - Kitten - 29.11.2012

Thank you all.

Simple note, If you want to use Rep for some such command that requires certain amount of rep to use this example via zcmd command processor.

pawn Код:
CMD:candy(playerid)
{
     if(pRep[playerid][Rep] >= 5) // Or amount of rep they must have or greater than that value!
     {
           SendClientMessage(playerid,-1,"FREE CANDY!");
     }
     return 1;
}



Re: Reputation (Give Rep, Remove Rep, Saving etc!) - LeGGGeNNdA - 29.11.2012

nice work... +rep


Re: Reputation (Give Rep, Remove Rep, Saving etc!) - zProfessional - 29.11.2012

what is the saving system?


Re: Reputation (Give Rep, Remove Rep, Saving etc!) - Lordzy - 29.11.2012

@zProfessional, It uses y_ini saving system.
OT:Interesting, but you should have kept a timer too or else player can do many reps with each other and can boost it up.


Re: Reputation (Give Rep, Remove Rep, Saving etc!) - Kitten - 29.11.2012

Quote:
Originally Posted by zProfessional
Посмотреть сообщение
what is the saving system?
Saves the rep to an ini file in the folder called 'Rep' with y_ini