• Welcome to Vice City Multiplayer.
 

Help

Started by DivX, March 03, 2011, 05:23:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DivX

Help


!Clanstats


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

heekz.shadow

enum Clans {
EAF,
HPK,
RAF,
};


new ClansInfo[kills][Clans];
new ClanKill[MAX_PLAYERS];


at OnPlayerDeath:
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:
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...




Pro Scripter[/b][/i][/u]