16.03.2013, 17:43
IUntested:
pawn Код:
enum Server
{
FirstKill
};
new ServerInfo[Server];
public OnGameModeInit()
{
ServerInfo[FirstKill] = 1;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(ServerInfo[FirstKill] == 1)
{
format(kstring,sizeof(kstring),""chat""COL_RED" %s has achieved a FIRST BLOOD! "COL_LIGHTBLUE"(+10 XP) (1 Cookie)",PlayerName(killerid))
SendClientMessageToAll(-1,kstring);
pInfo[killerid][pXP] += 10;
pInfo[killerid][pCookies] += 1;
ServerInfo[FirstKill] == 0;
}
return 1;
}