[FilterScript] Romel's User Profile - Pretty Simple
#1

RomUser - Pretty Simple

Last Updated: 20/10/2012


Introduction

Inspired

I saw some Profile scripts which gives me idea creating a simple one which is in dialog.
It also saves the Rep and View.

Point of this script

The Point of this script is nothing, nothing at all.
I'm creating it because i'm bored once again and can't go online tomorrow whole day because i've to fix something for Monday.

Sorry if my grammar english is bad.

Suggestion

Post any suggestions you want to add in next version.
I will check the suggestions everyday. (Not everyday)

Bugs

There is current no bugs found during the test.

Post, if found bug.

Commands

Player

/giverep - gives rep to a player
/myprofile - shows your profile status
/profile - shows someone profile, if theres a player visit other's profile, other's profile view will increase to 1

Admin

/setrep - sets player's rep
/setview - sets player's view

How to install

First download RomUser.
Second Extract all files from RomUser
Third open filterscript folder, Extract RomUser.pwn and RomUser.amx to your filterscripts folder
Forth open pawno/include, Extract the includes in your pawno/include folder
Fifth open plugins, Extract the sscanf.dll and sscanf.so in your plugins folder
Sixth open scriptfiles, Extract the RomUser folder in your scriptfiles folder

Seventh

open Server.cfg and do it like this

Код:
filterscript RomUser
plugins sscanf
for Linux

Код:
plugins sscanf.so
Credits

Romel for scripting
SA-MP Team for functions
****** for YSI library, foreach and sscanf
Zeex for zcmd
Someone who create Profile Script for inspiring me

Downloadlink

RomUser (Latest)

Thank you for using RomUser!
Reply
#2

Pictures ? Videos ? Other then that nice job.
Reply
#3

Any pics/videos?
Reply
#4

Screenshot will be post tomorrow or could someone post it i can't right now..
Reply
#5

Not bad ,rep system was alreayd maked by some on else .. not bad
Reply
#6

Another great thing romel!
Reply
#7

Код:
CMD:setview(playerid, params[])
{
	new str[128], id, newview;
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not admin!");
	if(sscanf(params, "ui", id, newview)) return SendClientMessage(playerid, -1, "Syntax: /setrep (part of name/id) (view)");
	if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "You can't rep invalid playerids!");
	uD[id][View] = 0;
	uD[id][View] = newview;
	format(str, sizeof(str), "Notification: Admin %s(ID:%d) has just set your view to %i, Your User Profile has been updated!", GetName(playerid), playerid, newview);
	SendClientMessage(id, -1, str);
	format(str, sizeof(str), "You set %s(ID:%d)'s view", GetName(id), id);
	SendClientMessage(playerid, -1, str);
	return 1;

And Set Rep 2 Same Commands

CMD:setrep(playerid, params[])
{
	new str[128], id, newrep;
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not admin!");
	if(sscanf(params, "ui", id, newrep)) return SendClientMessage(playerid, -1, "Syntax: /setrep (part of name/id) (rep)");
	if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "You can't rep invalid playerids!");
	uD[id][Reputation] = 0;
	uD[id][Reputation] = newrep;
	format(str, sizeof(str), "Notification: Admin %s(ID:%d) has just set your rep to %i, Your User Profile has been updated!", GetName(playerid), playerid, newrep);
	SendClientMessage(id, -1, str);
	format(str, sizeof(str), "You set %s(ID:%d)'s rep", GetName(id), id);
	SendClientMessage(playerid, -1, str);
	return 1;
}


}
Kindly Fix And Check it pls
Reply
#8

Quote:
Originally Posted by pds2012
Посмотреть сообщение
Код:
CMD:setview(playerid, params[])
{
	new str[128], id, newview;
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not admin!");
	if(sscanf(params, "ui", id, newview)) return SendClientMessage(playerid, -1, "Syntax: /setrep (part of name/id) (view)");
	if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "You can't rep invalid playerids!");
	uD[id][View] = 0;
	uD[id][View] = newview;
	format(str, sizeof(str), "Notification: Admin %s(ID:%d) has just set your view to %i, Your User Profile has been updated!", GetName(playerid), playerid, newview);
	SendClientMessage(id, -1, str);
	format(str, sizeof(str), "You set %s(ID:%d)'s view", GetName(id), id);
	SendClientMessage(playerid, -1, str);
	return 1;

And Set Rep 2 Same Commands

CMD:setrep(playerid, params[])
{
	new str[128], id, newrep;
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not admin!");
	if(sscanf(params, "ui", id, newrep)) return SendClientMessage(playerid, -1, "Syntax: /setrep (part of name/id) (rep)");
	if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "You can't rep invalid playerids!");
	uD[id][Reputation] = 0;
	uD[id][Reputation] = newrep;
	format(str, sizeof(str), "Notification: Admin %s(ID:%d) has just set your rep to %i, Your User Profile has been updated!", GetName(playerid), playerid, newrep);
	SendClientMessage(id, -1, str);
	format(str, sizeof(str), "You set %s(ID:%d)'s rep", GetName(id), id);
	SendClientMessage(playerid, -1, str);
	return 1;
}


}
Kindly Fix And Check it pls
What is the problem, it's working fine.

Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
Not bad ,rep system was alreayd maked by some on else .. not bad
Dude, i know, but it was build for the system not for it self.

Anyway thanks anyone.
Reply
#9

Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
Not bad ,rep system was alreayd maked by some on else .. not bad
It doesn't matter that someone has made Rep system before. There are many AFK systems released so I don't think it's kinda useless stuff or no need to create another.
OT: Sounds good. Able to post pics or videos?
Reply
#10

Pics not needed , if the owner doesn't even notices
gtfo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)