13.12.2014, 22:08
how can i make that if i wave a BOT he look at my player?
CMD:wave(playerid, params[])
{
//if your script is /wave [ID], then check if the ID is bot. = Better here
if(targetid==NPC/*&&They are close to eachother*/)
{
new Float:FA;
GetPlayerFacingAngle(playerid, FA);
SetPlayerFacingAngle(targetid, FA+180.0);
format(msg, sizeof(msg), "%s and %s had a moment. They will get married soon", PlayerName(playerid), PlayerName(targetid));
SendClientMessageToAll(COLOR_SEXY, msg);
ApplyAnimation(targetid, ......);
}
}