31.10.2012, 02:29
how to make a stats, and player n admin can do /stats
|
idk A'm use dis gm
http://forum.sa-mp.com/showthread.ph...hlight=karagon |
CMD:stats(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new Score = PlayerInfo[playerid][Score];
new AdminLevel = PlayerInfo[playerid][AdminLevel];
new Cash = PlayerInfo[playerid][Cash];
new BankCash = PlayerInfo[playerid][BankCash];
new Banned = PlayerInfo[playerid][Banned];
new WantedLevel = PlayerInfo[playerid][GetPlayerWantedLevel];
new Warnings = PlayerInfo[playerid][Warnings];
new HasPack = PlayerInfo[playerid][HasPack];
new ArmyPermission = PlayerInfo[playerid][ArmyPermission];
new PackCash = PlayerInfo[playerid][PackCash];
new PackSnack = PlayerInfo[playerid][PackSnack];
new PackPipe = PlayerInfo[playerid][PackPipe];
new PackPot = PlayerInfo[playerid][PackPot];
new PackCondom = PlayerInfo[playerid][PackCondom];
new JailTime = PlayerInfo[playerid][JailTime];
new RobSkill = PlayerInfo[playerid][RobSkill];
new Elite = PlayerInfo[playerid][Elite];
new PackExp = PlayerInfo[playerid][PackExp];
new TerrorSkill = PlayerInfo[playerid][TerrorSkill];
new string[1024];
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"{298ACF}Stats for: %s \n \n {FFFFFF}Score: %d \n Admin Level: %d \n Cash: %d \n BankCash: %d \n Banned: %d \n WantedLevel: %d \n Warnings: %d \n HasPack: %d \n ArmyPermissions: %d \n PackCash: %d \n PackSnack: %d \n PackPipe: %d \n PackPot: %d \n PackCondom: %d \n JailTime: %d \n RobSkill: %d \n Elite: %d \n PackExp: %d \n TerrorSkill: %d", name,Admin Level,Cash,BankCash,Banned,WantedLevel,Warnings,HasPack,ArmyPermissions,PackCash,PackSnack,PackPipe,PackPot,PackCondom,JailTime,RobSkill,Elite,PackExp,TerrorSkill);
SendClientMessage(playerid, 0xC4C4C4FF, string);
}
return 1;
}
new Score = PlayerInfo[playerid][Score];
new AdminLevel = PlayerInfo[playerid][AdminLevel];
new Cash = PlayerInfo[playerid][Cash];
new BankCash = PlayerInfo[playerid][BankCash];
new Banned = PlayerInfo[playerid][Banned];
new WantedLevel = PlayerInfo[playerid][GetPlayerWantedLevel];
new Warnings = PlayerInfo[playerid][Warnings];
new HasPack = PlayerInfo[playerid][HasPack];
new ArmyPermission = PlayerInfo[playerid][ArmyPermission];
new PackCash = PlayerInfo[playerid][PackCash];
new PackSnack = PlayerInfo[playerid][PackSnack];
new PackPipe = PlayerInfo[playerid][PackPipe];
new PackPot = PlayerInfo[playerid][PackPot];
new PackCondom = PlayerInfo[playerid][PackCondom];
new JailTime = PlayerInfo[playerid][JailTime];
new RobSkill = PlayerInfo[playerid][RobSkill];
new Elite = PlayerInfo[playerid][Elite];
new PackExp = PlayerInfo[playerid][PackExp];
new TerrorSkill = PlayerInfo[playerid][TerrorSkill];
}
] and seeing from the start, I do not think that he will be able to understand it :/
|
All those things above will need declaration of the enums and things [Am I right? begginer
] and seeing from the start, I do not think that he will be able to understand it :/ |