30.08.2010, 16:33
how to detect knife kill?
i want that when player knifes other player he gets 500$
does its possible?
i want that when player knifes other player he gets 500$
does its possible?
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerWeapon(killerid) == 4)
{
GivePlayerMoney(killerid, 500);
}
return 1;
}
pawn Код:
|
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 4)
{
GivePlayerMoney(killerid, 500);
}
return 1;
}