Two Little Questions
#1

I need the following questions answered please:

1. If someone kills a person, and the person who dies is on team "ATC", how would I make the killer loose 1
point, 100 dollars, and sent them a message saying "Do no kill ACT members!"

2. If a person is on a team, and the team name is "ATC" and they kill someone, it would make them loose 1 point and 100 dollars, then sending them a message saying "You an are ATC member, do not kill other players!"

Thanks in advance
Reply
#2

Oh i need to know it too - help somebody.. i ahvent ever made scripts kind of that
Reply
#3

I think i can help ... go here and watch the vidoe guys ,, i hope this helps ,, good luck

Samp PAWNO tutorial 4isplay a message when you connect.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)