Author Topic: In Pickup, How To Add The Following?? help me please  (Read 2807 times)

0 Members and 1 Guest are viewing this topic.

Offline [NYB]Gino

  • Street Thug
  • *
  • Posts: 15
    • View Profile
In Pickup, How To Add The Following?? help me please
« on: May 10, 2014, 07:46:44 am »
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;
}

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: In Pickup, How To Add The Following?? help me please
« Reply #1 on: May 10, 2014, 12:05:16 pm »
Just add it on your script.
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: [NEW] Duel, Fight, Exit to bank teleport system by me
« Reply #2 on: May 10, 2014, 09:13:29 pm »
Next time read all script sorce before use.

Well these all codec will be add in ..

Public OnPickedUp(pickupid,playerid)
{
//place codes here
return 1;
}
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol