How to Script... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to Script... (
/showthread.php?tid=292093)
How to Script... -
Cr4zyR0d - 22.10.2011
I want to make that every player can move their Character's hand when they talk "In-Character".
Because when I talk In-Character, my character doesn't move the hands like Talking.
Re: How to Script... -
Scenario - 22.10.2011
https://sampwiki.blast.hk/wiki/ApplyAnimation
Respuesta: How to Script... -
Cr4zyR0d - 22.10.2011
Well I tried, but it doesn't work.. maybe is because I don't know how to do.. I am not a Pro Scripter :/
Re: How to Script... -
grand.Theft.Otto - 22.10.2011
Try this:
pawn Код:
// under OnPlayerText
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
Re: How to Script... -
Kostas' - 22.10.2011
Generally about Anims.
pawn Код:
if(strcmp(cmd, "/handsup", true) == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}
Check
Animations,
ApplyAnimation.
Also,
SetPlayerSpecialAction
Re: How to Script... -
=WoR=G4M3Ov3r - 22.10.2011
Quote:
Originally Posted by Kostas'
|
What he wants is that, when you type something In-Character, the player applies an animation automatically, instead of using a CMD.
Re: How to Script... -
grand.Theft.Otto - 22.10.2011
My solution will work.
Tested.
Re: How to Script... -
Kostas' - 22.10.2011
Quote:
Originally Posted by =WoR=G4M3Ov3r
What he wants is that, when you type something In-Character, the player applies an animation automatically, instead of using a CMD.
|
My bad, xD
Respuesta: How to Script... -
Cr4zyR0d - 23.10.2011
Quote:
Originally Posted by grand.Theft.Otto
Try this:
pawn Код:
// under OnPlayerText
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
|
pawn Код:
public OnPlayerText(playerid, text[])
{
// under OnPlayerText
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
if(FindIP(text)) return kick4IP(playerid, text);
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new tmp[128];
new string[128];
if(PlayerInfo[playerid][pHospital] == 1 || CanTalk[playerid] == 0)
{
return 0;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "You can't speak, you're muted.");
return 0;
}
Well it works, but my character can't walk when he is talking..
Re: How to Script... -
grand.Theft.Otto - 23.10.2011
Delete that one and try this:
ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.0, 0,0,0,0,0);
The one above is from the library called MISC, and is #2 of IDLE_CHAT.