Custom rank 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: Custom rank system (
/showthread.php?tid=475342)
Custom rank system -
PrivatioBoni - 12.11.2013
Hi,
I'm looking to make a custom rank system for factions. At this point, I can't really think how to do it.
I'm not expecting anyone to give me the script or script it for me, I want to do it by myself. I just need a few hints and then I can rock and roll.
If I've been unclear:
A sort of command where instead of the ranks being predefined, e.g. Officer, you can choose your own input, e.g. abc123.
Thanks.
- I currently use the Y_INI saving system.
Helpful responses will receive a positive reputation.
Re: Custom rank system -
David (Sabljak) - 12.11.2013
If you mean on this?
**EXAMPLE
Код:
new example[20];
if(PlayerInfo[playerid][pCountry] == 0) { example= "You are from nowhere"; }
else if(PlayerInfo[playerid][pCountry] == 1) { example= "You are from America"; }
else if(PlayerInfo[playerid][pCountry] == 2) { example= "You are from Canada"; }
format(string,sizeof(string), "From? :%s",example);
SCM(playerid,-1,string);
Re: Custom rank system -
PrivatioBoni - 12.11.2013
Quote:
Originally Posted by David (Sabljak)
If you mean on this?
**EXAMPLE
Код:
new example[20];
if(PlayerInfo[playerid][pCountry] == 0) { example= "You are from nowhere"; }
else if(PlayerInfo[playerid][pCountry] == 1) { example= "You are from America"; }
else if(PlayerInfo[playerid][pCountry] == 2) { example= "You are from Canada"; }
format(string,sizeof(string), "From? :%s",example);
SCM(playerid,-1,string);
|
No, because they're not ranks nor is that custom. They are predefined, I am looking for custom/dynamic input that you can do in-game.
Re: Custom rank system -
Beckett - 12.11.2013
It works just like a house naming system, save it in the INI file for a specific command, display it on chat or whatever.