Can some1 help me? i want pickup items :(
#1

Can some1 help me ? how i can make pickups? (weapons)
Reply
#2

u check the wiki ?

https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup here for example

and here

https://sampwiki.blast.hk/wiki/CreatePickup

and here for models

https://sampwiki.blast.hk/wiki/Game_Object_ID_List

have fun
Reply
#3

Код:
new tec9pickup;

public OnGameModeInit()
{
   tec9pickup = Createpickup(372, 2, floatX, floatY, floatZ, virtualword);
   return 1;
}

public OnPlayerPickUppickup(playerid, pickupid)
{
  if(pickupid == tec9pickup)
  {
      GivePlayerWeapon(playerid, 372, 150);
   }
  return 1;
}
Make this your own variant and use the pickupguide on the wiki for more info.
Reply
#4

Thanks very Much
Reply
#5

No problem
Reply
#6

what happens this says error 010: invalid function or declaration and i dont find a error
Reply
#7

Show the line

you did do:

public OnPlayerPickUpPickup


and not

public OnPlayerPickUppickup


right?
Reply
#8

srry nothing I fix it )))
Reply
#9

i add it under the OnGameModeInit () ? tec9pickup = CreatePickup(372, 2, -2959.0056,479.9946,4,1);
Reply
#10

and this under the public OnPlayerPickUpPickup(playerid, pickupid)? if(pickupid == tec9pickup)
{
GivePlayerWeapon(playerid, 32, 15000);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)