how to get 10% money from playerid
#1

i want, killerid will get 10% money from playerid.,,,


how pls tell me
Quote:

public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(killerid,//10% from playerid);
return 1;
}

Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(killerid,GetPlayerMoney(playerid)/10);
return 1;
}
Reply
#3

thank u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)