[HELP] Shake hand command
#1

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.
Reply
#2

you would have to use animations.

use:

wiki.sa-mp.com
Reply
#3

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

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;}
Reply
#5

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


Forum Jump:


Users browsing this thread: 2 Guest(s)