Problem with a script!
#5

lol no1 helping, as usual...

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))
this:
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);
}
Reply


Messages In This Thread
Problem with a script! - by caldaia33 - 29.08.2010, 20:16
Re: Problem with a script! - by caldaia33 - 30.08.2010, 10:29
Re: Problem with a script! - by Voldemort - 30.08.2010, 11:12
Re: Problem with a script! - by caldaia33 - 30.08.2010, 11:46
Re: Problem with a script! - by n4pkill - 03.11.2010, 21:04

Forum Jump:


Users browsing this thread: 3 Guest(s)