put this on the top of your script
[pawn]#define JACK_WHITE 0xFFFFFFAA[/pawn]
this is pickup id
[pawn]public OnPickedUp( pickupid, playerid )
{
if ( pickupid == 115)
{
SetPlayerMoney(playerid,GetPlayerMoney(playerid) + 10000); // +10.000$ to the cash
SendClientMessage(playerid, JACK_WHITE, "You picked up briefcase! Award: 10000$");
}
if ( pickupid == 2)
{
SetPlayerMoney(playerid,GetPlayerMoney(playerid) + 50000); // +50.000$ to the cash
SendClientMessage(playerid, JACK_WHITE, "You picked up bank cash!");
}
if ( pickupid == 2)
{
SetPlayerWeapon(playerid, 21, 276);
SendClientMessage(playerid, JACK_WHITE, "You picked up box with a ruger!");
}
if ( pickupid == 116)
{
SetPlayerDrunk(playerid, 300, 300);
SendClientMessage(playerid, JACK_WHITE, "You drink a beer!");
}
if ( pickupid == 117)
{
SendClientMessage(playerid, JACK_WHITE, "Now you can rob bank!");
}
if ( pickupid == 118)
{
SetPlayerDrunk(playerid, 0, 0);
SendClientMessage(playerid, JACK_WHITE, "Your drink down!");
}
if ( pickupid == 119)
{
SendClientMessage(playerid, JACK_WHITE, "deposit your cash to bank!");
}
if ( pickupid == 120)
{
SendClientMessage(playerid, JACK_WHITE, "No Prop are for sale!");
}
if ( pickupid == 121)
{
SetPlayerMoney(playerid,GetPlayerMoney(playerid) + 5000);
SendClientMessage(playerid, JACK_WHITE, "You picked up cash!");
}
if ( pickupid == 122)
{
SetPlayerHealth( playerid, 100.0 );
SendClientMessage(playerid, JACK_WHITE, "You picked health!");
}
return 1;
}
[/pawn]
this is in ongamemodeinit
[pawn]AddStaticPickup(1, 258, 378.6752 ,-544.8027, 17.2830);
AddStaticPickup(2, 408, 378.6752 ,-544.8027, 17.2830);
AddStaticPickup(115,335,-378.6752 ,-544.8027, 17.2830);
AddStaticPickup(116,594,-370.1473 ,-534.9988, 17.2818);
AddStaticPickup(117,582,-372.3398 ,-535.0133, 17.2820);
AddStaticPickup(118,532,-374.2028 ,-535.0257, 17.2821);
AddStaticPickup(119,411,-375.8776 ,-535.0366, 17.2822);
AddStaticPickup(120,406,-377.3418 ,-535.0463, 17.2823);
AddStaticPickup(121,337,-379.1037 ,-535.0580, 17.2824);
AddStaticPickup(122,366,-380.0583 ,-535.0643, 17.2824);
AddStaticPickup(123,408,-944.3057 ,-343.6536, 7.2269); [/pawn]
you can edit it by getting in your cmds like drunk cmd with pickup botel
good luck on scripting