pawn Код:
CMD:rep(playerid,params[])
{
static ID, name[MAX_PLAYERS], string7[200], name2[MAX_PLAYERS], string8[200];
if (sscanf(params, "ii", ID)) return SendClientMessage(playerid, 0xff0000aa, "[Rep-System]: /rep [playerid/name]");
if (playerid == ID) return SendClientMessage(playerid, 0xff0000aa, "[Rep-System]: You can't rep yourself!");
GetPlayerName(ID, name2, sizeof(name2));
format(string8,sizeof(string8),"[Rep-System]: {FFAF00}%s recieved has recieved rep!",name2);
SendClientMessageToAll(COLOR_RED,string8);
GetPlayerName(playerid, name, sizeof(name));
format(string7,sizeof(string7),"[Rep-System]: {FFFF00}* %s(%d) has repped you !",name,playerid);
SendClientMessage(ID,COLOR_RED,string7);
PlayerInfo[playerid][pReps] = -1;
PlayerInfo[ID][pReps] = +1;
return 1;
}