Two Little Questions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Two Little Questions (
/showthread.php?tid=130043)
Two Little Questions -
Frank Hunt - 24.02.2010
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
Re: Two Little Questions -
GaGlets(R) - 24.02.2010
Oh i need to know it too - help somebody..
i ahvent ever made scripts kind of that
Re: Two Little Questions -
AlbanianGuy - 24.02.2010
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.
Re: Two Little Questions -
Miguel - 25.02.2010
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;
}