help 2 add some thing in my bank sys
#1

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
Reply
#2

is a way 2 do it ?
some 1
Reply
#3

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

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)