Little help.
#2

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(checkpointid == NFS)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"[ERROR]: You Should Be In A Vehicle First!");
        SetPlayerInterior(playerid,1);
        LinkVehicleToInterior(vehicleid,1);
        if(IsPlayerInAnyVehicle(playerid))  SetVehiclePos(vehicleid,624.7927,-22.8007,1001.6973);
        SetVehicleZAngle(vehicleid,0.0096);
        SetPlayerPos(playerid,624.7927,-22.8007,1001.6973);
        SetPlayerCameraPos(playerid,623.9209,-18.4105,1021.7413);
        SetPlayerCameraLookAt(playerid,624.7927,-22.8007,1001.6973);
        TogglePlayerControllable(playerid, 1);
    }
    return 1;
}
Reply


Messages In This Thread
Little help. - by Littlehelper - 27.06.2012, 12:30
Re: Little help. - by Randy More - 27.06.2012, 12:50
Re: Little help. - by Littlehelper - 27.06.2012, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)