giving money to a player
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerConnected(killerid))
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
SendDeathMessage(killerid, playerid, reason);
PlayerInfo[killerid][Money] += 1000; //the amount you want to give.
ResetPlayerMoney(killerid);
GivePlayerMoney(killerid,PlayerInfo[killerid][Money]);
}
return 1;
}
Reply


Messages In This Thread
giving money to a player - by facekche - 31.07.2015, 22:44
Re: giving money to a player - by ikey07 - 31.07.2015, 22:48
Re: giving money to a player - by facekche - 31.07.2015, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)