Jump to content

Question

Posted

Cum fac dupa ce apas comanda /chat, sa pot merge ? Adica daca dau /chat sa pot sa merg, ca acum daca dau /chat nu pot sa ma misc, doar "da din maini".

www.youtube.com/thebwgg

11 answers to this question

Recommended Posts

Posted

lol

[pawn]

CMD:chat(playerid,params[ ]) {

TogglePlayerControllable(playerid, true);

return 1;

}

[/pawn]

daca dadeai un mic search, gaseai foarte usor

Gresit!


CMD:chat( playerid )

{

if( GetPlayerState( playerid ) == 0 ) return SendClientMessage( playerid, -1, "ERROR: You are not On Foot !" );

if( GetPVarInt( playerid, "cAnim" ) == 0 )

{

ApplyAnimation( playerid, "PED", "factalk", 4.1, 1, 0, 1, 0, 0 );

SetPVarInt( playerid, "cAnim", 1 );

}

else

{

ClearAnimations( playerid );

SetPVarInt( playerid, "cAnim", 0 );

}

return ( 1 );

}


Daca erati atenti Amandoi, Functia ApplyAnimation Are implementat FREEZE

142sj0l.png

Underground-GFX

Posted

Gresit!


CMD:chat( playerid )

{

if( GetPlayerState( playerid ) == 0 ) return SendClientMessage( playerid, -1, "ERROR: You are not On Foot !" );

if( GetPVarInt( playerid, "cAnim" ) == 0 )

{

ApplyAnimation( playerid, "PED", "factalk", 4.1, 1, 0, 1, 0, 0 );

SetPVarInt( playerid, "cAnim", 1 );

}

else

{

ClearAnimations( playerid );

SetPVarInt( playerid, "cAnim", 0 );

}

return ( 1 );

}


Daca erati atenti Amandoi, Functia ApplyAnimation Are implementat FREEZE

Si-ti poti da UNFREEZE dand doar un simplu click.

Hitman.Bwg, ce face acest "/chat" ? Da-ne si comanda.

Posted

@stuntman, uite comanda:

[pawn] if(strcmp(cmd,"/chat",true)==0 || strcmp(cmd,"/talk",true)==0)

{

    ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0, 1);

return 1;

}[/pawn]

EDIT: Nu gasesc unde sa pun asta:

[pawn]CMD:chat( playerid )

{

  if( GetPlayerState( playerid ) == 0 ) return SendClientMessage( playerid, -1, "ERROR: You are not On Foot !" );

  if( GetPVarInt( playerid, "cAnim" ) == 0 )

  {

      ApplyAnimation( playerid, "PED", "factalk", 4.1, 1, 0, 1, 0, 0 );

      SetPVarInt( playerid, "cAnim", 1 );

  }

  else

  {

      ClearAnimations( playerid );

      SetPVarInt( playerid, "cAnim", 0 );

  }

  return ( 1 );

}[/pawn]

La OnPlayerCommandText ? :undecided:

www.youtube.com/thebwgg

Posted

roach, el nu a dat detalii despre cum sa fie comanda asa ca nu te mai baga aiurea :)

btw, daca functia returnata este pozitiva nu are nevoie de paranteze, decat cele false, doh

nu pune in onplayercommandtext, langa

trebuia sa mai detaliezi si tu

Posted

Razvane eu asa Mam obisnuit si asa imi place :|


[pawn]if( !strcmp( cmdtext, "/chat" ) )

{

  if( GetPlayerState( playerid ) == 0 ) return SendClientMessage( playerid, -1, "ERROR: You are not On Foot !" );

  if( GetPVarInt( playerid, "cAnim" ) == 0 )

  {

      ApplyAnimation( playerid, "PED", "factalk", 4.1, 1, 0, 1, 0, 0 );

      SetPVarInt( playerid, "cAnim", 1 );

  }

  else

  {

      ClearAnimations( playerid );

      SetPVarInt( playerid, "cAnim", 0 );

  }

  return ( 1 );

}[/pawn]

Puneo la OnPlayerCommandText

142sj0l.png

Underground-GFX

Posted

Deci hitman.bwg pune comanda asta:

CMD:chat( playerid )
{
   if( GetPlayerState( playerid ) == 0 ) return SendClientMessage( playerid, -1, "ERROR: You are not On Foot !"[/color] );

   if( GetPVarInt( playerid, "cAnim" ) == 0 )
   {
      ApplyAnimation( playerid, "PED", "factalk", 4.1, 1, 0, 1, 0, 0 );
      SetPVarInt( playerid, "cAnim", 1 );
   }
   else
   {
      ClearAnimations( playerid );
      SetPVarInt( playerid, "cAnim", 0 );
   }
   return ( 1 );
}

Puneo in afara oricarui callback sau a oricarei functiii!!!!

Fara reclama in semnatura!

Posted

@stuntman, uite comanda:

[pawn] if(strcmp(cmd,"/chat",true)==0 || strcmp(cmd,"/talk",true)==0)

{

    ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0, 1);

return 1;

}[/pawn]

http://wiki.sa-mp.com/wiki/ApplyAnimation

Asa e cum vrei tu:

ApplyAnimation( playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 1, 1 );


Nu va mai incurcati in detalii !

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.