how i add? -
PAF - 02.02.2014
how i add admin level and operator level in this script
CMD
tats(playerid,params[])
{
new string[128], pDeaths, player1,playername[MAX_PLAYER_NAME];
if(isnull(params)) player1 = playerid;
else player1 = strval(params);
if (!IsPlayerConnected(player1)) return SendClientMessage(playerid, -1, "Player Not Connected!");
GetPlayerName(player1, playername, sizeof(playername));
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
new str[128], str1[128];
new fstr[1800];
format(str, sizeof(str),"%s's Stats", PlayerName2(player1));
format(string,sizeof(string),"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float
Deaths);
format(str1, sizeof(str1),"Rank: %s | Team: %s | Class: %s | Session Kills %d",GetRankName(player1), GetTeamName(player1), GetClass(player1), Skills[player1]);
strcat(fstr, str);
strcat(fstr, string);
strcat(fstr, str1);
return ShowPlayerDialog(playerid, 11111,DIALOG_STYLE_MSGBOX,"{FFFF00}Player Stats",string,"Close","");
return 1;
}
Re: how i add? -
King Ace - 02.02.2014
Код:
CMD:stats(playerid,params[])
{
new string[128], pDeaths, player1,playername[MAX_PLAYER_NAME];
if(isnull(params)) player1 = playerid;
else player1 = strval(params);
if (!IsPlayerConnected(player1)) return SendClientMessage(playerid, -1, "Player Not Connected!");
GetPlayerName(player1, playername, sizeof(playername));
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
new str[128], str1[128];
new fstr[1800];
format(str, sizeof(str),"%s's Stats", PlayerName2(player1));
format(string,sizeof(string),"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
format(str1, sizeof(str1),"Rank: %s | Team: %s | Class: %s | Session Kills %d",GetRankName(player1), GetTeamName(player1), GetClass(player1), Skills[player1]);
strcat(fstr, str);
strcat(fstr, string);
strcat(fstr, str1);
return ShowPlayerDialog(playerid, 11111,DIALOG_STYLE_MSGBOX,"{FFFF00}Player Stats",string,"Close","");
return 1;
}
Add something like this for admin & operator
Код:
admin = PlayerInfo[player1][AdminLevel]
And then just put them into string and display the string
Re: how i add? -
PAF - 02.02.2014
idont no what you say plz put them plz plz
Re: how i add? -
iZN - 02.02.2014
If you have no freaking idea how to script, go learn some stuff through wiki and tutorial and for fucking sake use [pawn] // code here [/pawn] bbcode.
Re: how i add? -
Ryan McDuff - 02.02.2014
Quote:
Originally Posted by PAF
idont no what you say plz put them plz plz
|
He basically did put them in for you, I would recommend looking up some guides or tutorials on using pawno and scripting. We can't just magically "poof" into your computer and do it all for you, try reading carefully what he said and compare it to what you have and make the changes.
Best of luck!
Re: how i add? -
PAF - 02.02.2014
seriuos i dont know plz help!!!
Re: how i add? -
ikbenremco - 02.02.2014
Dude, you can't expect us to make everything you want, if you want to become a decent scripter look through some videos/tutorials about scripting, it's stupid to make us do anything since you will learn nothing.