Author Topic: Help  (Read 2358 times)

0 Members and 1 Guest are viewing this topic.

Offline DivX

  • Street Thug
  • *
  • Posts: 11
    • View Profile
Help
« on: March 03, 2011, 08:23:18 pm »
Help


!Clanstats


Help!!!! PlZ  ??? ??? ??? ??? ??? ??? ??? ??? ???

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Help
« Reply #1 on: March 03, 2011, 08:32:19 pm »
Code: [Select]
enum Clans {
EAF,
HPK,
RAF,
};

Code: [Select]
new ClansInfo[kills][Clans];
new ClanKill[MAX_PLAYERS];

at OnPlayerDeath:
Code: [Select]
ClanKill[killerid]++;
new name[5]; GetPlayerName(killerid,name,sizeof(name));
if(!strcmp(name,"[EAF]"));
{
ClansInfo[kills][EAF]++;
}
else if(!strcmp(name,"[HPK]"));
{
ClansInfo[kills][HPK]++;
}
else if(!strcmp(name,"[RAF]"));
{
ClansInfo[kills][RAF]++;
}

in your command:
Code: [Select]
new string[256]; format(string,sizeof(string),"EAF Kills: %d HPK Kills: %d RAF Kills: %d",ClansInfo[kills][EAF],ClansInfo[kills][HPK],ClansInfo[kills][RAF]);
SendClientMessage(playerid,color,string);

Too bored to write the whole command...


Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players