[FilterScript] Reputation (Give Rep, Remove Rep, Saving etc!)
#1


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;
}

Reply
#2

Nice man
Reply
#3

Great to see you start releasing again i love your work
Reply
#4

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

great
Reply
#6

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;
}
Reply
#7

nice work... +rep
Reply
#8

what is the saving system?
Reply
#9

@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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)