A famed system. - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A famed system. (
/showthread.php?tid=399339)
A famed system. -
StopFondlinMe - 14.12.2012
I just need some help on how to make a famed system.
CMDS: /makefamed, /famed, and that's it.
Also, this is for a RP server, based off the zGaming script.
I also want it to say Famed when they say stuff on /newbie.
Re: A famed system. -
Horrible - 14.12.2012
Quote:
Originally Posted by StopFondlinMe
I just need some help on how to make a famed system.
CMDS: /makefamed, /famed, and that's it.
Also, this is for a RP server, based off the zGaming script.
I also want it to say Famed when they say stuff on /newbie.
|
i'm not understand can you explain it more ?
btw you are in the wrong section..
you must post it here :
https://sampforum.blast.hk/showthread.php?tid=187229
Re: A famed system. -
StopFondlinMe - 14.12.2012
Uhh, if a player has been in the server for a long time I want to make them famed. Just a little incentive I guess.
And.. ok. Someone can close this.
Re: A famed system. -
maramizo - 14.12.2012
On top of the script:
Command:
pawn Код:
CMD:makefamed(playerid, params[])
{
extract params -> new player:i; else return SendClientMessage(playerid, -1, "USAGE: /makefamed [Player ID/Part of name]");
famed[i] = 1;
new string[128], name{MAX_PLAYER_NAME];
GetPlayerName(i, name, MAX_PLAYER_NAME);
format(string, 128, "You have made %s(%i) famed.", name, i);
SendClientMessage(playerid, -1, string);
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, 128, "You have been made famed by %s(%i), congratulations!", name, playerid);
SendClientMessage(i, -1, string);
return 1;
}
Under
Edit it so that it says Famed for anyone with famed[playerid] = 1.
Commands done using sscanf 2.6 and zcmd.