Author Topic: pls help add package system help me  (Read 2307 times)

0 Members and 1 Guest are viewing this topic.

Offline regser

  • Street Thug
  • *
  • Posts: 2
    • View Profile
pls help add package system help me
« on: September 29, 2012, 11:17:55 am »
70 units please help'll make the package system

Offline Javed Ahmadzai

  • Street Thug
  • *
  • Posts: 3
  • Admin in ASS Server
    • View Profile
    • http://www.asshosting.forumur.net/
Re: pls help add package system help me
« Reply #1 on: October 21, 2012, 11:12:51 am »
try this bro, ;)

For  a Beginning

[pawn]#define JACK_WHITE 0xFFFFFFAA // Copypast to your pwn file[/pawn]

1st Step. To add pickup ( put in gamemod init )

[pawn]AddStaticPickup (1, 410, -442.8760, -315.8749, 11.1867); // Hidden Package[/pawn]

2nd Step. to make a function of the pickup

[pawn]public OnPickedUp(playerid,pickupid)
{
if ( pickupid == 1) // Function of 1st pickup
{
SetPlayerMoney(playerid,GetPlayerMoney(playerid) + 5000); // +5.000$ to the cash
SendClientMessage(playerid, JACK_WHITE, "You picked up hidden package! Award: 5000$");
}[/pawn]
 
U can add more pickup and can put pakeges functions like this one

Sorry For My English :(