Help please
#2

In top of your script:
pawn Код:
new TestPickUp;
In OnGameModeInit or OnFilterScriptInit:
pawn Код:
TestPickUp = CreatePickup(Model, Type, Float:X,Float:Y,Float:Z);
//Example: TestPickUp = CreatePickup(1276, 3, 541.9261,1557.4919,1.0000);
In any part of your script:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == TestPickUp)
  {
  GameTextForPlayer(playerid,"~g~You enter in test PickUp",5000,3);
  SendClientMessage(playerid,COLOR_RED,"Test PickUp");
  //Here your function (Example: GivePlayerMoney, SetPlayerPos,...)
    }
  return 1;
  }
Reply


Messages In This Thread
Help please - by [XST]O_x - 01.09.2009, 18:05
Re: Help please - by LuxurioN™ - 01.09.2009, 18:32
Re: Help please - by brett7 - 01.09.2009, 18:32
Re: Help please - by [XST]O_x - 01.09.2009, 18:33
Re: Help please - by [XST]O_x - 01.09.2009, 19:11
Re: Help please - by brett7 - 01.09.2009, 21:28
Re: Help please - by Imran.Abbas - 01.09.2009, 21:32
Re: Help please - by [XST]O_x - 03.09.2009, 14:12
Re: Help please - by Imran.Abbas - 03.09.2009, 14:29
Re: Help please - by [XST]O_x - 03.09.2009, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)