SA-MP Forums Archive
help 2 add some thing in my bank sys - 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: help 2 add some thing in my bank sys (/showthread.php?tid=138802)



help 2 add some thing in my bank sys - rong13 - 03.04.2010

i wanna add that who will try to attack some 1
will die and go to prison
this is the fs
http://pastebin.com/tnHAMrDE



Re: help 2 add some thing in my bank sys - rong13 - 03.04.2010

is a way 2 do it ?
some 1


Re: help 2 add some thing in my bank sys - aircombat - 03.04.2010

that will make when a player kill a player , the killer die.
Код:
public OnPlayerDeath(playerid,killerid,reason)
{
SetPlayerHealth(killerid,0.0);
SendClientMessage(killerid,0xAA3333AA,"Never Kill Again!!!");
return 1;
}



Re: help 2 add some thing in my bank sys - rong13 - 03.04.2010

no i dont mean that if some i kill some one he will die
he will die if he kill some 1 in the bank



Re: help 2 add some thing in my bank sys - [RP]ExtreamX - 03.04.2010

public OnPlayerDeath(playerid,killerid,reason)
{
if(IsPlayerInRangeOfPoint(playerid, 10, X,Y,Z))
{ SetPlayerHealth(killerid,0.0);
SendClientMessage(killerid,0xAA3333AA,"Never Kill Again!!!");
}
}

Enter in the bank and go to the middle and take the coords than at the if(IsPlayerInRangeOfPoint(playerid, 10, X,Y,Z)) change the X,Y,Z with the coords from there
This way the killer will only get killed when you're in the bank