First Player
#3

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;
}
Reply


Messages In This Thread
First Player - by Blackazur - 16.03.2013, 16:41
Re: First Player - by zxc1 - 16.03.2013, 16:47
Re: First Player - by kamzaf - 16.03.2013, 17:43

Forum Jump:


Users browsing this thread: 2 Guest(s)