Two Little Questions
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  ... // other stuff in OnPlayerDeath
  if(gTeam[playerid] == ATC)
  {
    SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
    GivePlayerMoney(killerid, -100);
    SendClientMessage(killerid, COLOR, "Do not kill ATC members!");
  }
  else if(gTeam[killerid] == ATC)
  {
    SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
    GivePlayerMoney(killerid, -100);
    SendClientMessage(killerid, COLOR, "Do not kill other players!");
  }
  return 1;
}
Reply


Messages In This Thread
Two Little Questions - by Frank Hunt - 24.02.2010, 22:10
Re: Two Little Questions - by GaGlets(R) - 24.02.2010, 22:23
Re: Two Little Questions - by AlbanianGuy - 24.02.2010, 22:39
Re: Two Little Questions - by Miguel - 25.02.2010, 02:09

Forum Jump:


Users browsing this thread: 1 Guest(s)