how to make a stats
#1

how to make a stats, and player n admin can do /stats
Reply
#2

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
how to make a stats, and player n admin can do /stats
What command system are you using?
Reply
#3

idk A'm use dis gm
http://forum.sa-mp.com/showthread.ph...hlight=karagon
Reply
#4

Ok give me a second ill write it out
Reply
#5

Post your admin variables and what do you want in the command.
Reply
#6

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
Try this, I used the gamemode so it should work fine.


Код:
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;
}
Reply
#7

Код:
	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];
}
What is the point of this o.O
Reply
#8

Learn some basics, from my opinion this is not correct question... People will laugh when they will see it, how to make stats? If you think you are a scripter, start learning other gamemodes first, its best way to learn
Reply
#9

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 :/
Reply
#10

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
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 :/
He has a downloaded gamemode, he just want to make one command...

That's what I understood.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)