How to add Flag into Bike?

Started by =RK=MarineForce, Sep 04, 2018, 09:45 AM

Previous topic - Next topic

=RK=MarineForce

Hello, Guyz u played vice war 7

flags in bike

so i want add flag into sanchez of Pakistan Flag <3

Its so Hard and i tried :'(

i don't understand

whats bugs in this?
function onPlayerRequestClass( player, classID, team, skin )
{
switch( skin )
    {
    case 83:
    {
SetSpawnPlayerPos(-1168, -617.437, 12.7852);
SetSpawnCameraPos( -1170.91, -617.551, 11.8277 );
SetSpawnCameraLook( -1170.91, -617.551, 11.8277 );
 player.PlaySound( 50001);
player.SetAnim(0,157);
 Announce( "Cuban #1", player, 0 );
    }
    break;
    case 84:
    {
 player.SetAnim(0,157);
 Announce( " Cuban #2", player, 0 );
    }
    break;
    case 85:
    {
 
        SetSpawnPlayerPos(-1185.25, 77.2132, 11.1281 );
SetSpawnCameraPos( -1194.83, 74.1243, 11.1281 );
SetSpawnCameraLook( -1194.83, 74.1243, 11.1281 );
 player.SetAnim(0,157);
 Announce( " Haitian #3", player, 0 );
    }
    break;
    case 86:
    {

 player.SetAnim(0,157);
 Announce( " Haitian #4", player, 0 );
    }
    break;
    case 83:
    {
 SetSpawnPlayerPos(-1168, -617.437, 12.7852);
SetSpawnCameraPos( -1170.91, -617.551, 11.8277 );
SetSpawnCameraLook( -1170.91, -617.551, 11.8277 );
 player.PlaySound( 50001);
player.SetAnim(0,157);
 Announce( "Cuban #1", player, 0 );
    }
    break;
    case 01:
    {
         SetSpawnPlayerPos(-1185.25, 77.2132, 11.1281 );
SetSpawnCameraPos( -1194.83, 74.1243, 11.1281 );
SetSpawnCameraLook( -1194.83, 74.1243, 11.1281 );
 player.SetAnim(0,157);
 Announce( " Haitian #3", player, 0 );
    }
    break;
    case 85:
    {
 
 Announce( "Team Cuban", player, 6 );
    }
    break;
 }
}

its working but not gud
 can u check it u try u will know what is bug ..

MEGAMIND

u want to add a real flag model to a bike?
or u want bike painted as pakistans flag

bike painted as pakistan is easy
and if u want a pakistan flag on bike then u need to add flag model using some softwares and attach it to bike

=RK=MarineForce

or u want bike painted as pakistans flag I want it .

MEGAMIND

Quote from: =RK=MarineForce on Sep 04, 2018, 02:33 PMor u want bike painted as pakistans flag I want it .
then paint it its not that hard use txd workshop to do ur job

=RK=MarineForce

Bro how? i don't know much and i never used txt workshop.


MEGAMIND


=RK=MarineForce

bro i m talking about Car not road ...

:)

Milos

Quote from: =RK=MarineForce on Sep 04, 2018, 09:45 AMfunction onPlayerRequestClass( player, classID, team, skin )
{
switch( skin )
    {
    case 83:
    {
SetSpawnPlayerPos(-1168, -617.437, 12.7852);
SetSpawnCameraPos( -1170.91, -617.551, 11.8277 );
SetSpawnCameraLook( -1170.91, -617.551, 11.8277 );
 player.PlaySound( 50001);
player.SetAnim(0,157);
 Announce( "Cuban #1", player, 0 );
    }
    break;
    case 84:
    {
 player.SetAnim(0,157);
 Announce( " Cuban #2", player, 0 );
    }
    break;
    case 85:
    {
 
        SetSpawnPlayerPos(-1185.25, 77.2132, 11.1281 );
SetSpawnCameraPos( -1194.83, 74.1243, 11.1281 );
SetSpawnCameraLook( -1194.83, 74.1243, 11.1281 );
 player.SetAnim(0,157);
 Announce( " Haitian #3", player, 0 );
    }
    break;
    case 86:
    {

 player.SetAnim(0,157);
 Announce( " Haitian #4", player, 0 );
    }
    break;
    case 83:
    {
 SetSpawnPlayerPos(-1168, -617.437, 12.7852);
SetSpawnCameraPos( -1170.91, -617.551, 11.8277 );
SetSpawnCameraLook( -1170.91, -617.551, 11.8277 );
 player.PlaySound( 50001);
player.SetAnim(0,157);
 Announce( "Cuban #1", player, 0 );
    }
    break;
    case 01:
    {
         SetSpawnPlayerPos(-1185.25, 77.2132, 11.1281 );
SetSpawnCameraPos( -1194.83, 74.1243, 11.1281 );
SetSpawnCameraLook( -1194.83, 74.1243, 11.1281 );
 player.SetAnim(0,157);
 Announce( " Haitian #3", player, 0 );
    }
    break;
    case 85:
    {
 
 Announce( "Team Cuban", player, 6 );
    }
    break;
 }
}
I think it's not the best option if everyone decides to change skin at the same time

=RK=MarineForce

#8
POP360 i want change camerapos when i change skin . its bugged


bro when i type /away i will be afk?

player.Away == True; its not working.

if i type /away and i search who's afk by /afk its showing noo one afk.
else if ( cmd == "away" )
{
Message(" [#ccff00] " + player.Name + " AFK Now ");
player.Away == true;
}

else if ( cmd == "active" )
{
Message(" [#ccff00]" + player.Name + " Active Now ");
player.Away == false;
}

else if ( ( cmd == "afk" ) || ( cmd == "afks" ) )
   {
      local plr, b;
      for( local i = 0; i <= GetMaxPlayers(); i++ )
      {
       plr = FindPlayer( i );
  if ( ( plr ) && ( plr.Away ) )
       {
      if ( b ) b = b + ", " + plr.Name + ""
      else b = plr.Name + ""
       }
      }
      if ( b ) MessagePlayer( "[#33cc00]Information: [#ffffff]Displaying List Of People Who Are Afk" , player ); 
      if ( b ) MessagePlayer( "[#33cc00]Information: [#FFFFFF]: " + b + "" , player );         
      else MessagePlayer( "[#009900][AFK][#ffffff] No One is AFK" , player );
       
}.

Milos

Quote from: =RK=MarineForce on Sep 04, 2018, 07:16 PMPOP360 i want change camerapos when i change skin . its bugged.
What happens is that the configuration is done after changing the skin. I think that's it.
Try this:
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.SetCameraPos
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.Pos
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.Angle

Quote from: =RK=MarineForce on Sep 04, 2018, 07:16 PMbro when i type /away i will be afk?
No, this happens automatically when the player minimizes the game or by pressing ESC (I'm not sure).

MEGAMIND

Quote from: =RK=MarineForce on Sep 04, 2018, 06:47 PMbro i m talking about Car not road ...

:)
its not about road its a guide about txd

Thomas

Everything in VC is rendered as Object, so basically roads are objects, it has property of collision etc.
The flag is itself an object which is rendered at client side, the custom object would have property to attach itself to some object, try to include the flag and work on client side script.
( I've been away for so long that i almost forgot how 0.4 works lol )

=RK=MarineForce

MEGAMIND i want add flag into bike how? bro tell me just here :P