[ZCMD]Help With Warning Whent Player Login Fail to server
#7

Quote:
Originally Posted by donhu789
Посмотреть сообщение
Your Failed Login Thinging See ?
I want to add that :\
How is your player being logged in? Show us that code too.

Quote:
Originally Posted by donhu789
Посмотреть сообщение
Nah Never Mind It I done it But can you make My a Givemoney commands I accidently Detele :\


And I need to Add MOre Line In THis thing but How ?

PHP код:
CMD:stats(playerid,params[])
{
    new 
pDeathsplayer1hms,playername[MAX_PLAYER_NAME];
    if(
isnull(params)) player1 playerid;
    else 
player1 strval(params);
    if(
IsPlayerConnected(player1)) {
        
TotalGameTime(player1hms);
        
GetPlayerName(player1playernamesizeof(playername));
        if(
PlayerInfo[player1][Deaths] == 0pDeaths 1; else pDeaths PlayerInfo[player1][Deaths];
        new 
str[20][1000];
        
format(str[0],1000,"| ------ |COD Stats For  %s's | ------- |\n"PlayerName2(player1));
        
strcat(str[1],str[0]);
        
format(str[2],1000,"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f\n"GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
        
strcat(str[1],str[2]);
        
format(str[3],1000,"Admin Level: %d | Moderator: %s | Rank: %s | Team: %s | Class: %s | Skin: %d\n"PlayerInfo[player1][Level], PlayerInfo[player1][Helper] ? ("Yes") : ("No"), GetRankName(player1), GetTeamName(player1), GetClass(player1), GetPlayerSkin(player1));
        
strcat(str[1],str[3]);
        
format(str[4],1000,"TimePlayed: [%d] hrs [%d] mins [%d] secs\n"hms);
        
strcat(str[1],str[4]);
        
format(str[5],1000,"| ---------------------------------------------------- |");
        
strcat(str[1],str[5]);
        
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Player Stats",str[1],"OK","");
    } else return 
SendClientMessage(playeridred"Player Not Connected!");
    return 
1;

help ? = REp REP REP REP REP realy REP
For the /stats, just copy and paste one of the format's and the strcat, and then paste it under one of the strcat's where you want to add something, and then simple add it. And make your own /givemoney command, that ain't hard either.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)