16.03.2008, 18:15
Quote:
Originally Posted by robhol
I still need this and an answer would be very nice.. anyone?
|
pawn Код:
if(!strcmp(cmdtext, "/ppos", true)) {
new id; // this is the variable for the second person
new Float:idang, Float:playeridang;
GetPlayerFacingAngle(playerid,playeridang);
GetPlayerFacingAngle(id,idang);
new diff;
if(playeridang > idang) diff = playeridang-idang
else diff = idang-playerid;
return diff;
format(str,sizeof(str),"Turn %d dgrees",diff);
SendClientMessage(playerid,0xFFFF00AA,str);
return 1;
}