Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Fjose

#1
George's VC:MP Launcher / Re: VC:MP Launcher
Feb 29, 2016, 09:25 PM
it's very good
#2
Eddy ya valieron madres gg
#3
Snippet Showroom / Re: Team System v1.0.2
Aug 26, 2015, 03:41 PM
@Zeeshan.Bhatti the error is produced because you are using these commands having this: partner = null; FindPlayer will only works if is a string or an integer, I just changed the position of that line, check the code again.
#4
Member list updated.
#5
Servers / Re: [0.4] Brasil Real RPG
Jul 12, 2015, 11:41 PM
Nice Server 8)
#6
QuoteAdded support for checkpoints. (Only one checkpoint at a time should be shown to a player.)
Added support for spheres.
How use these two things? 8) forget it
#7
thanks
[mergedate]1432928032[/mergedate]
Quote from: Thijn on May 29, 2015, 05:50 AM<weapon> - the ID of the weapon your custom weapon behaves like; putting 6 in here will make your weapon behave like a baseball bat
I was omitting/ignoring that detail xD, for that, I was confusing the things

For e.g the archive is called w100_s3_l24_SIngramCustom.7z, the id is 24 (Silenced Ingram), then I need modify the animgroup in the weaponname.xml to what?
 <animgroup>what I'll put?</animgroup>
#8
[spoiler=sniper.xml]<?xml version="1.0" encoding="ASCII"?>
<weapon>
   <basic>
      <name>Sniper</name>
      <logicalid>28</logicalid>
   </basic>

   <properties>
      <type>instant_hit</type>
      <range>100.000000</range>
      <firerate>180</firerate>
      <reload>1401</reload>
      <clipsize>7</clipsize>
      <damage>125</damage>
      <speed>-1.000000</speed>
      <radius>-1.000000</radius>
      <lifespan>-1.000000</lifespan>
      <spread>-1.000000</spread>
      <offset>
         <x>0.000000</x>
         <y>0.660000</y>
         <z>0.050000</z>
      </offset>
      <animgroup>unarmed</animgroup>
      <animstart>2</animstart>
      <animend>8</animend>
      <animfire>3</animfire>
      <anim2start>0</anim2start>
      <anim2end>10</anim2end>
      <anim2fire>3</anim2fire>
      <animbreak>99</animbreak>
      <modelindex>286</modelindex>
      <model2index>-1</model2index>
      <flags>00000100</flags>
      <weaponslot>8</weaponslot>
   </properties>
</weapon>[/spoiler]

Taking this example.
about animgroup, where I can find the names of each one? specifically the animagroup for the tec-9, and what are the flags?

Sebby, I would like know where you learned all this :), was reading the vc code? (gta3.img model)

#9
I've found another solution using pickup.Timer that does the same like pickup.RespawnTime ( I guess, this function doesn't work on 0.4)
#10
ok, I have this.

        CreatePickup( 280, 1, 60, Vector( -1744.31, -299.216, 14.8683 ), 255, true ); // m4 group
CreatePickup( 274, 1, 50, Vector( -1741.35, -294.67, 14.8683 ), 255, true ); // col group
CreatePickup( 274, 1, 50, Vector( -1691.8, -177.954, 14.8683 ), 255, true );
CreatePickup( 289, 1, 40, Vector( -1663.16, -129.052, 14.8683 ), 255, true ); // m6 group

function onPickupPickedUp( player, pickup )
{
local model = pickup.Model, id = player.ID, p = pinfo[id];
switch( model )
{
case 274:
case 280:
case 289:
FindPickup( pickup.ID ).Remove();
FindPickup( pickup.ID ).RespawnTime( 5 );
return;
break;
case 408:
return gMessage( id, mGreen, "Your Financial Status - Cash: $" + Bytes( p.Cash ) + ", Bank: $" + Bytes( p.Bank ) );
break;
default:
break;
}
}

but there is an error using FindPickup( pickup.ID ).RespawnTime( 5 ); or FindPickup( pickup.ID ).RespawnTime = 5;

>> Error: Attempt to call an integer. <<

How use that function? I had no problems with that function on the 0.3

#11
Nothing
#12
Quote from: S.L.C on May 25, 2015, 03:47 PMI think you need the function that decides whether a pickup can be picked by a player or not.

function onPickupClaimPicked(player, pickup)
{
return true; // true: Allow to pick-up. false: deny pick-up.
}

nothing happens
#13
I can't take the weapons from the pickups, I'm not seeing any problems on the script.

        CreatePickup( 280, Vector( -1744.31, -299.216, 14.8683 ) ); // m4 group
CreatePickup( 274, Vector( -1741.35, -294.67, 14.8683 ) ); // col group
CreatePickup( 274, Vector( -1691.8, -177.954, 14.8683 ) );
CreatePickup( 289, Vector( -1663.16, -129.052, 14.8683 ) ); // m6 group


function onPickupPickedUp( player, pickup )
{
local model = pickup.Model, id = player.ID, p = pinfo[id];
switch( model )
{
case 274:
return player.SetWeapon( 274, 50 );
break;
case 280:
return player.SetWeapon( 280, 60 );
break;
case 289:
return player.SetWeapon( 289, 40 );
break;
case 408:
return gMessage( id, mGreen, "Your Financial Status - Cash: $" + Bytes( p.Cash ) + ", Bank: $" + Bytes( p.Bank ) );
default:
break;
}
pickup.RespawnTime = 5;
}
#14
Quote from: stormeus on May 25, 2015, 03:04 PMThat won't work because the Angle is a Quaternion with X, Y, Z, and W components. You need to use veh.EulerAngle.Z or store all the components.

ok, i'll test it

EDIT:

Working thanks ;D
#15
Quote from: stormeus on May 25, 2015, 02:37 AMDid you convert to radians?

No, only I copied the function how is. e.g:
" + veh.Model + "," + veh.World + "," + veh.Pos.x + "," + veh.Pos.y + "," + veh.Pos.z + "," + veh.Angle + "," + veh.Colour1 + "," + veh.Colour2;
this is the saved for create the vehicle, nothing more.

EDIT:

function DegtoRad( degree ) return degree * 0.0174533;I have to multiply it for the angle z?