/stats
#1

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:gihpFloat:giar;
    
GetPlayerHealth(playeridgihp);
    
GetPlayerArmour(playeridgiar);
    
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(tempsizeof(temp), "Name: %s(%d)\n",PlayerName(playerid),playerid);
    
strcat(infotemp);
    
format(tempsizeof(temp), "Score: %i\n",GetPlayerScore(playerid));
    
strcat(infotemp);
    
format(tempsizeof(temp), "Cash: %d$\n",GetPlayerMoney(playerid));
    
strcat(infotemp);
    
format(tempsizeof(temp), "Bank Cash: %d$\n",BankCash[playerid]);
    
strcat(infotemp);
    
format(tempsizeof(temp), "Admin Level: %d\n",AdminLevel[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Army: %d\n",CanUseArmy[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "CIA: %d\n",CanUseCIA[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Regular Player: %d\n",IsRegularPlayer[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Trusted Regular Player: %d\n",IsTRP[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Warns: %d\n",Warns[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Terrorist Skill: %d\n",TerroristSkill[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Rob Skill: %d\n",RobSkill[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Cop Rank: %d\n",CopRank[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Has C4: %d\n",HasC4[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Secure Wallet: %d\n",HasSecureWallet[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Condoms: %d\n",HasCondoms[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Ropes: %d\n",HasRope[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Scissors: %d\n",HasScissors[playerid]);
    
strcat(infotemp);
    
    
format(tempsizeof(temp), "Kills: %d\n",Kills[playerid]);
    
strcat(infotemp);
    
format(tempsizeof(temp), "Deaths: %d\n",Deaths[playerid]);
    
strcat(infotemp);
    
ShowPlayerDialog(playerid,DIALOG_STATSDIALOG_STYLE_MSGBOX,"{53C506}Stats",info,"Close","");
    
format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /stats.",PlayerName(playerid),playerid);
    
SendClientMessageToAllAdmins(string);
    return 
true;

Reply


Messages In This Thread
/stats - by nor15 - 07.07.2013, 04:10
Re: /stats - by Boolean - 07.07.2013, 08:22
Re: /stats - by dEcooR - 07.07.2013, 09:34
Re: /stats - by nor15 - 07.07.2013, 14:15
Re: /stats - by ReVo_ - 07.07.2013, 14:24
Re: /stats - by Jefff - 07.07.2013, 14:49

Forum Jump:


Users browsing this thread: 5 Guest(s)