Problem with Dcmd
#2

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new name[MAX_PLAYER_NAME], string[128];
  if(pickupid == PickUpObj[pickupid])
	GivePlayerMoney(playerid,amount);
  DestroyPickup(PickUpObj[playerid]);
  GetPlayerName(playerid, name, sizeof(name));
  format(string, sizeof(string), "%s found the moneypickup!", name );
  SendClientMessageToAll(0xFFFF00AA, string);
}
Look at give player money, remove the amount and type after playerid, 500 or 1000 or whatever money you wish and don't forget to close it
Код:
GivePlayerMoney(playerid, 500);
Reply


Messages In This Thread
Problem with Dcmd - by Davita - 08.02.2010, 10:23
Re: Problem with Dcmd - by yoan103 - 08.02.2010, 10:25
Re: Problem with Dcmd - by Davita - 08.02.2010, 10:32

Forum Jump:


Users browsing this thread: 1 Guest(s)