28.10.2010, 14:40
Easy enough, rofl.
I can see you're new to scripting so I'll keep it simple:
I can see you're new to scripting so I'll keep it simple:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) //This code gets called when somebody dies.
{
if(IsPlayerConnected(killerid)) //Checks if there really is a "killer" - more ways of death are for example falling from great heights, so there isn't a killer there!
{
GivePlayerMoney(killerid, 500); //Give the player 500 dollars
}
return 1;
}