30.10.2009, 01:04
Functions:
IsPlayerBehindPlayer(playerid, targetid, Float:dOffset)
SetPlayerToFacePlayer(playerid, targetid)
IsPlayerFacingPlayer(playerid, targetid, Float:dOffset)
AngleInRangeOfAngle(Float:a1, Float:a2, Float:range)
Example:
Download:
IsPlayerBehindPlayer(playerid, targetid, Float:dOffset)
SetPlayerToFacePlayer(playerid, targetid)
IsPlayerFacingPlayer(playerid, targetid, Float:dOffset)
AngleInRangeOfAngle(Float:a1, Float:a2, Float:range)
Example:
Code:
if(strcmp(cmdtext, "/assgrab", true)==0) { if(IsPlayerBehindPlayer(playerid, targetid, 15.0)) { SendClientMessageToAll(BLUE, "Someone in the server is getting frisky..."); } else return SendClientMessage(playerid, RED, "You must be behind the target to perform the command."); }