Win money when you kill someone
#3

Easy enough, rofl.

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;
}
Reply


Messages In This Thread
Win money when you kill someone - by Amator - 28.10.2010, 14:36
Re: Win money when you kill someone - by 0ne - 28.10.2010, 14:38
Re: Win money when you kill someone - by Hiddos - 28.10.2010, 14:40
Re : Win money when you kill someone - by Amator - 28.10.2010, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)