13.03.2014, 09:29
Here are some examples :
OR :
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerMoney(playerid, POCKET_MONEY); // 10000
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID && IsPlayerConnected(killerid)) {
GivePlayerHealth(killerid, 50);
SendClientMessage(killerid, COLOR_SUCCESS, "Great! you killed a person and earn 50 HP!");
}
}