SA-MP Forums Archive
[HELP] Shake hand command - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Shake hand command (/showthread.php?tid=136620)



[HELP] Shake hand command - Ro[X]y - 25.03.2010

Which functions I have to use in order to build a /shakehand command?
I mean how can I make the player to be facing one another.


Re: [HELP] Shake hand command - Steven82 - 25.03.2010

you would have to use animations.

use:

wiki.sa-mp.com


Re: [HELP] Shake hand command - Correlli - 26.03.2010

Animation function, position function, angle functions. There are some useful functions in the custom a_angles.inc include, search for it.


Re: [HELP] Shake hand command - -Rebel Son- - 26.03.2010

theres that way yes, but if the players can angle themselfs you can make a command with a string. like so



Код:
if(!strcmp(cmdtext,"/shakehand",true)) {
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s reachs out to shake hands", pname);
************animation can go here************************
SendClientMessageToAll(your color, string);
return 1;}



Re: [HELP] Shake hand command - Ro[X]y - 27.03.2010

I already made the command thank you all, it's works great!