How to get shooter id
#1

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
Код HTML:
if (GetPlayerScore(playerid)>=100)
. 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;
}
Reply


Messages In This Thread
How to get shooter id - by Supermaxultraswag - 15.11.2014, 13:50
Re: How to get shooter id - by DavidBilla - 15.11.2014, 13:52
Re: How to get shooter id - by Supermaxultraswag - 15.11.2014, 13:57
Re: How to get shooter id - by DavidBilla - 15.11.2014, 13:59
Re: How to get shooter id - by HY - 15.11.2014, 13:59
Re: How to get shooter id - by Supermaxultraswag - 15.11.2014, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)