Deejaybwg Posted September 11, 2011 Posted September 11, 2011 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
heker Posted September 11, 2011 Posted September 11, 2011 http://wiki.sa-mp.com/wiki/Function:TogglePlayerControllable
Razvann Posted September 11, 2011 Posted September 11, 2011 lol[pawn]CMD:chat(playerid,params[ ]) {TogglePlayerControllable(playerid, true);return 1;}[/pawn]daca dadeai un mic search, gaseai foarte usor
Roach Posted September 11, 2011 Posted September 11, 2011 lol[pawn]CMD:chat(playerid,params[ ]) {TogglePlayerControllable(playerid, true);return 1;}[/pawn]daca dadeai un mic search, gaseai foarte usorGresit!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 Underground-GFX
IstuntmanI Posted September 11, 2011 Posted September 11, 2011 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 FREEZESi-ti poti da UNFREEZE dand doar un simplu click.Hitman.Bwg, ce face acest "/chat" ? Da-ne si comanda.
Deejaybwg Posted September 11, 2011 Author Posted September 11, 2011 @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
Razvann Posted September 11, 2011 Posted September 11, 2011 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, dohnu pune in onplayercommandtext, langatrebuia sa mai detaliezi si tu
Roach Posted September 11, 2011 Posted September 11, 2011 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 Underground-GFX
xxSPEEDYxx Posted September 11, 2011 Posted September 11, 2011 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!
Roach Posted September 11, 2011 Posted September 11, 2011 Ma capcaunilor ), el nu are ZCMD :|PS: Mi-am dat seama ca a zis OnPlayerCommandText ci nu OnPlayerCommandPerformed... :P Underground-GFX
Deejaybwg Posted September 11, 2011 Author Posted September 11, 2011 Ai dreptate Roach, nu am OnPlayerCommandPerformed. :) www.youtube.com/thebwgg
IstuntmanI Posted September 11, 2011 Posted September 11, 2011 @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/ApplyAnimationAsa e cum vrei tu:ApplyAnimation( playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 1, 1 );Nu va mai incurcati in detalii !
Question
Deejaybwg
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