This is what i currently have for Stats. (Based off my TDM Server)
pawn Код:
CMD:stats(playerid,params[])
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"|____Your Stats____|");
new rank[128];
if(pRank[playerid] == 6) {
rank = "Lieutenent";
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Rank: Lieutenent");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
else if(pRank[playerid] == 5) {
rank = "Captain";
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Rank: Captain");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
else if(pRank[playerid] == 4) {
rank = "Major";
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Rank: Major");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
else if(pRank[playerid] == 3) {
rank = "Colonel";
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Rank: Colonel");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
else if(pRank[playerid] == 2) {
rank = "General";
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Rank: General");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
else if(pRank[playerid] == 1) {
rank = "Special Ops";
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Rank: Special Ops");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
else if(pRank[playerid] == 0) {
rank = "Soldier";
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Rank: Soldier");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
return 1;
}