03.11.2010, 21:04
lol no1 helping, as usual...
try instead of:
this:
try instead of:
pawn Код:
new Float:cx, Float:cy, Float:cz;
new Float:kx, Float:ky, Float:kz;
GetPlayerPos(playerid,cx,cy,cz);
GetPlayerPos(kissedid,kx,ky,kz);
if((cx-kx <= 5)&&(cx-kx >= -5)&&(cy-ky <= 5)&&(cy-ky >= -5))
pawn Код:
new kissedID = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,kissedID) < 5)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid,cx+0.9,cy,cz);
SetPlayerPos(kissedid, cx, cy, cz);
SetPlayerFacingAngle(playerid, 270);
SetPlayerFacingAngle(kissedid, 90);
}