SA-MP Forums Archive
Respect System! (+REP) - Printable Version

+- SA-MP Forums Archive (
+-- Forum: SA-MP Scripting and Plugins (
+--- Forum: Scripting Help (
+--- Thread: Respect System! (+REP) (/showthread.php?tid=332717)

Respect System! (+REP) - James Coral - 09.04.2012

Is it Possible do Make Respect System
With /giverespect do other player
and if he loses his points or i want i can set them in scriptfolder

Can enyone help me?

Re: Respect System! (+REP) - BigBaws - 10.04.2012

need it too good luck

Re: Respect System! (+REP) - ReneG - 10.04.2012

If you have ever saved RP stats, then you just do the same thing?

Re: Respect System! (+REP) - SpiritEvil - 10.04.2012

Here's a very simple example using ZCMD and sscanf. You can expand it to your needs if you like.

pawn Код:
new Respect[MAX_PLAYERS];

CMD:giverespect(playerid, params[])
    new id, resp;
    if(sscanf(params, "ui", id, resp)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /giverespect [Player ID] [Respect]");
    Respect[id] += resp;
    new str[128];
    new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));
    new pName[MAX_PLAYER_NAME]; GetPlayerName(id, pName, sizeof(pName));
    format(str, sizeof(str), "Administrator %s gave you %i respect!", name, resp);
    SendClientMessage(id, 0x00FF00FF, str);
    format(str, sizeof(str), "You gave %s %i respect!", pName, resp);
    return 1;

CMD:respect(playerid, paraps[])
    new str[128];
    format(str, sizeof(str), "You have {FFFFFF}%i {00FF00}respect points!");
    SendClientMessage(playerid, 0x00FF00FF, str);
    return 1;

Re: Respect System! (+REP) - BigBaws - 10.04.2012

when you do /giverespect it giving this message

Administrator My_Name gave you 0 respect

i did /giverespect My ID 100

Re: Respect System! (+REP) - Kingunit - 10.04.2012

Modify it. Check every line of the script untill you understand it. Ain't hard to see that there is more than just ID.

Re: Respect System! (+REP) - Sting. - 10.04.2012

Yes, it is possible. It can be done.

Re: Respect System! (+REP) - freddy smyth - 10.04.2012


CMD:respect (playerid, paraps)...

Isn't it supposed to be (playerid, params) ?

Anyway, you could always look for some respect filterscript on the forum, or make one such as the one kindly posted by SpiritEvil.