Quick help please
#6

That's odd. Try adding a message AFTER the player position check to see if it's really getting stuck on that;

pawn Код:
forward PipeCheck(playerid);
public PipeCheck(playerid)
{
    SendClientMessageToAll(COLOR_WHITE, "DEBUG: Pipecheck started");
    if(IsPlayerInRangeOfPoint(playerid, 2.5, 1976.7637,-2522.4316,18.6932))
    {
        SendClientMessageToAll(COLOR_WHITE, "DEBUG: Passed the Player Coordinate check!");
        new Float:vx, Float:vy, Float:vz;
        GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
        SendClientMessageToAll(COLOR_WHITE, "DEBUG: Got their velocity!");

        new Float:va;
        GetVehicleZAngle(GetPlayerVehicleID(playerid), va);
        SendClientMessageToAll(COLOR_WHITE, "DEBUG: Got their angle!");

        SetVehicleVelocity(GetPlayerVehicleID(playerid), floatsin(-va, degrees) * 0.9, floatcos(va, degrees) * 2.9 , vz);
        SendClientMessageToAll(COLOR_WHITE, "DEBUG: Player has been flunged forward!");
    }
    return 1;
}
Reply


Messages In This Thread
Quick help please - by Luis- - 22.01.2012, 19:16
Re: Quick help please - by 2KY - 22.01.2012, 19:45
Re: Quick help please - by Luis- - 22.01.2012, 19:45
Re: Quick help please - by 2KY - 22.01.2012, 19:48
Re: Quick help please - by Luis- - 22.01.2012, 20:11
Re: Quick help please - by 2KY - 22.01.2012, 20:13
Re: Quick help please - by Luis- - 22.01.2012, 20:24
Re: Quick help please - by 2KY - 22.01.2012, 20:30
Re: Quick help please - by Luis- - 22.01.2012, 20:33
Re: Quick help please - by 2KY - 22.01.2012, 20:34

Forum Jump:


Users browsing this thread: 1 Guest(s)