MAX_PLAYERS what is this?
#4


new kills[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
kills[killerid]++; // Adds one kill for killedid.
return 1;
}

if(strcmp(cmd, "/kills", true) == 0)
{
new str[256];

format(str, sizeof(str), "You have killed %d players )!",kills);//this is a example to haw to use this
SendClientMessage(playerid, 0xAA3333AA, str);
return 1;
}

This code besikly stores information of a playerid...


Reply


Messages In This Thread
MAX_PLAYERS what is this? - by icey--t - 18.02.2009, 04:51
Re: MAX_PLAYERS what is this? - by Finn - 18.02.2009, 04:59
Re: MAX_PLAYERS what is this? - by icey--t - 18.02.2009, 05:42
Re: MAX_PLAYERS what is this? - by robanswe - 20.02.2009, 12:30
Re: MAX_PLAYERS what is this? - by Mikep - 20.02.2009, 12:35
Re: MAX_PLAYERS what is this? - by kc - 20.02.2009, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)