Not Code !! - 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: Not Code !! (
/showthread.php?tid=557612)
Not Code !! -
nezo2001 - 14.01.2015
I want to know the names of police levels like:
cheif 10
And other ?
Re: Not Code !! -
HY - 14.01.2015
pawn Код:
stock GetPlayerPoliceRank(playerid)
{
new arank[128];
switch(YourPoliceVariable)
{
case 10: arank = "Chief";
case 9: arank = "Name Rank 9";
case 8: arank = "Name Rank 8";
// Continue (....)
case 1: arank = "Name Rank 1";
default: arank = "None";
}
return arank;
}
pawn Код:
CMD:rank(playerid, params[])
{
new string[60];
format(string, sizeof(string), "Your Police Level it's: %s.", GetPlayerPoliceRank(playerid));
SendClientMessage(playerid, -1, string);
return 1;
}
Re: Not Code !! -
nezo2001 - 14.01.2015
i know i am asking about the name of the levels
Re: Not Code !! -
bgedition - 14.01.2015
Police Officer
Investigator
Sergeant
Lieutenant
Major
Captain
Commander
Commissioner
Re: Not Code !! -
nezo2001 - 14.01.2015
So
Police Officer 1
Investigator 2
Sergeant 3
Lieutenant 4
Major 5
Captain 6
Commander 7
Commissioner 8
right ?
Re: Not Code !! -
CalvinC - 14.01.2015
It differs alot from server to server, and from police departments.
But this is a section to get help with your scripting, please post under "Everything and Nothing" next time.