Author Topic: Coool pickups and functions  (Read 2179 times)

0 Members and 1 Guest are viewing this topic.

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Coool pickups and functions
« on: December 25, 2012, 11:07:57 am »
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
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Coool pickups and functions
« Reply #1 on: December 25, 2012, 11:11:23 am »
if you want to place  pickups to the place you want

goto that location and type /s

then the cordinates will be stored/saved in gta vcmp folder. on the file name
Code: [Select]
vc-mp_saved_coords
then you can use pawno . and edit script!
Do!

Add This Only In OnGameModeInIt!!

Code: [Select]
AddStaticPickup(pickupid,Modelid,floatx,floaty,floatz);
Quote
pickupid : is the function of id . the id is used to make it function on OnPickedUp!
modelid : is the model id of which you wanna place !! You Can Get Model Ids from Vrocker Wiki VCMP
Float:x : The First Float . Refacing Angle For Pickup
Float:y : The 2nd Float. Re-Positionising The Pickup!
Float:z : The 3rd Float. Helps Rotating Pickups!

good luck
« Last Edit: April 18, 2014, 01:31:37 pm by mrockxkingbutt »
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline rathore

  • Street Thug
  • *
  • Posts: 42
  • I am a scripter and still trying to be best
    • View Profile
    • Ultimate gamier
Re: Coool pickups and functions
« Reply #2 on: April 24, 2014, 08:03:22 pm »
Mrockx i think you have to do a little correction with colors i mean add the color code instead of color name if some dont have jackwhite named color he will get error or if he is noob then he will get confused



Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Coool pickups and functions
« Reply #3 on: April 25, 2014, 12:08:11 pm »
put this on the top of your script
[pawn]#define JACK_WHITE 0xFFFFFFAA[/pawn]

what is this then?
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol