07.07.2013, 04:10
I use this script but i want if the player is CIA , Army , Regular Player etc. it write Yes and if he isn't it write No
PHP код:
dcmd_stats(playerid,params[])
{
#pragma unused params
new Float:gihp, Float:giar;
GetPlayerHealth(playerid, gihp);
GetPlayerArmour(playerid, giar);
GetPlayerWantedLevel(playerid);
new string[128];
new temp[1000];
new info[1000];
if(IsSpawned[playerid] != 1)
{
SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
return 1;
}
format(temp, sizeof(temp), "Name: %s(%d)\n",PlayerName(playerid),playerid);
strcat(info, temp);
format(temp, sizeof(temp), "Score: %i\n",GetPlayerScore(playerid));
strcat(info, temp);
format(temp, sizeof(temp), "Cash: %d$\n",GetPlayerMoney(playerid));
strcat(info, temp);
format(temp, sizeof(temp), "Bank Cash: %d$\n",BankCash[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Admin Level: %d\n",AdminLevel[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Army: %d\n",CanUseArmy[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "CIA: %d\n",CanUseCIA[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Regular Player: %d\n",IsRegularPlayer[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Trusted Regular Player: %d\n",IsTRP[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Warns: %d\n",Warns[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Terrorist Skill: %d\n",TerroristSkill[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Rob Skill: %d\n",RobSkill[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Cop Rank: %d\n",CopRank[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Has C4: %d\n",HasC4[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Secure Wallet: %d\n",HasSecureWallet[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Condoms: %d\n",HasCondoms[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Ropes: %d\n",HasRope[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Scissors: %d\n",HasScissors[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Kills: %d\n",Kills[playerid]);
strcat(info, temp);
format(temp, sizeof(temp), "Deaths: %d\n",Deaths[playerid]);
strcat(info, temp);
ShowPlayerDialog(playerid,DIALOG_STATS, DIALOG_STYLE_MSGBOX,"{53C506}Stats",info,"Close","");
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /stats.",PlayerName(playerid),playerid);
SendClientMessageToAllAdmins(string);
return true;
}