Thread: Walking peds
View Single Post
Old 05-12-2009   #9
WNeZRoS
Registered User
 
Join Date: May 2009
Posts: 19
WNeZRoS is an unknown quantity at this point
Scripting:ehicle GetPedVehicle(Ped ped_id)
{
Scripting:ehicle veh;
GetCarCharIsUsing(ped_id, &veh);
return veh;
}
....
else if((GetAsyncKeyState(98) & 1) != 0)//num 2
{
GetCharCoordinates(GetPlayerPed(), &px[id],&py[id],&pz[id]);
PrintStringWithLiteralStringNow("STRING", "My pos saved", 1000, 0);
}
else if((GetAsyncKeyState(99) & 1) != 0 && DoesCharExist(ped[id]))//num 3
{
if(!IsCharInAnyCar(ped[id]))
TaskGoStraightToCoord(ped[id], px[id], py[id], pz[id], 2, 45000);
else
TaskCarDriveToCoordNotAgainstTraffic(0,GetPedVehic le(ped[id]),px[id],py[id], pz[id],24, 0, 400514754, 2,-1, 200);
PrintStringWithLiteralStringNow("STRING", "Ped goto saved pos", 1000, 0);
}
....
WNeZRoS is offline   Reply With Quote