15.11.2014, 13:50
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
// i need to check here if shooter has more than 100 score. It has to be smth like that
. As you see, I know how to check player who took damage, but how do i check player who give damage..
if(weaponid == 30) GivePlayerMoney(playerid, 10);
return 1;
}
{
// i need to check here if shooter has more than 100 score. It has to be smth like that
Код HTML:
if (GetPlayerScore(playerid)>=100)
if(weaponid == 30) GivePlayerMoney(playerid, 10);
return 1;
}