15.04.2018, 22:03
Something like this? And what I need to do about cmd:f ?
And how can I set that, at makeleader, if value is 1 rank to be 15. if value is 2, rank to be 17 ?
And how can I set that, at makeleader, if value is 1 rank to be 15. if value is 2, rank to be 17 ?
PHP код:
stock GetRankName(playerid)
{
new rankname[256];
switch(pInfo[playerid][pFaction])
{
case 1:
{
switch(pInfo[playerid][pRank])
{
case 1: rankname = "Suspended Employee";
case 2: rankname = "Academy Student";
case 3: rankname = "Police Officer I";
case 4: rankname = "Police Officer II";
case 5: rankname = "Police Officer III";
case 6: rankname = "Police Officer III+1";
case 7: rankname = "Sergeant I";
case 8: rankname = "Sergeant II";
case 9: rankname = "Lieutenant I";
case 10: rankname = "Lieutenant II";
case 11: rankname = "Police Captain";
case 12: rankname = "Police Commander";
case 13: rankname = "Deputy Chief of Police";
case 14: rankname = "Assistant Chief of Police";
case 15: rankname = "Chief of Police";
}
}
case 2:
{
switch(pInfo[playerid][pRank])
{
case 1: rankname = "Suspended Employee";
case 2: rankname = "Academy Student";
case 3: rankname = "Probationary Firefighter";
case 4: rankname = "Firefighter I";
case 5: rankname = "Firefighter II";
case 6: rankname = "Paramedic";
case 7: rankname = "EMT";
case 8: rankname = "First Responder";
case 9: rankname = "Attending Physician";
case 10: rankname = "Chief Of Medicine";
case 11: rankname = "Lieutenant";
case 12: rankname = "Lieutenant II";
case 13: rankname = "Captain";
case 14: rankname = "Battalion Chief";
case 15: rankname = "Division Chief";
case 16: rankname = "Deputy Commissioner";
case 17: rankname = "Commissioner";
}
}
}
return rankname;
}