Рекомендованные сообщения



5 posts in this topic

D:\GHEKA\Ìîäû\AVRP\gamemodes\stel.pwn(67086) : error 017: undefined symbol "SetPlayerToFacePlayer"
D:\GHEKA\Ìîäû\AVRP\gamemodes\stel.pwn(67105) : error 017: undefined symbol "SetPlayerToFacePlayer"



SetPlayerToFacePlayer(playerid, FollowBy[playerid]);

SetPlayerToFacePlayer(playerid, FollowBy[playerid]);

 

Share this post


Link to post
Share on other sites

@archiboy6 откуда вырезали систему, оттуда возьмите сток SetPlayerToFacePlayer

Share this post


Link to post
Share on other sites

@DEST я ее тут взял, в разделе CMD

Share this post


Link to post
Share on other sites

В конец мода: 
 

Спойлер

stock SetPlayerToFacePlayer(playerid, targetid)
{
 
        new Float:pX, Float:pY, Float:pZ, Float:ang;
        if(!IsPlayerConnected(playerid) || !IsPlayerConnected(targetid)) return 0;
        GetPlayerPos(targetid, X, Y, Z);
        GetPlayerPos(playerid, pX, pY, pZ);
        if( Y > pY ) ang = (-acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y - pY)*(Y - pY))) - 90.0);
        else if( Y < pY && X < pX ) ang = (acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y - pY)*(Y - pY))) - 450.0);
        else if( Y < pY ) ang = (acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y - pY)*(Y - pY))) - 90.0);
        if(X > pX) ang = (floatabs(floatabs(ang) + 180.0));
        else ang = (floatabs(ang) - 180.0);
        SetPlayerFacingAngle(playerid, ang);
        return 0;
 
}

 

 

Share this post


Link to post
Share on other sites

@archiboy6 обычно любой код надо где то, что то подгонять под свой мод.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content