06.06.2009, 12:23
I'm not sure what's going on, I changed the position of the driving school and now when I start the driving test, I puts me outside the driving school like it should but then it dosen't create the vehicle... It just puts me up in the air around 2 + the Z Poistion of where the car should be placed and freezes me there, I can't see my player and all i can do is move the camra.
The new DrivingTestVeh; is at the top of my script as it is needed for other things aswell.
This is my /StartTest Command:
The new DrivingTestVeh; is at the top of my script as it is needed for other things aswell.
This is my /StartTest Command:
pawn Код:
dcmd_StartTest(playerid, params[])
#pragma unused params
{
new string[54];
if(PlayerToPoint(1,playerid,-2026.969482, -114.465362, 1035.171875))
{
if (500 > GetPlayerMoney(playerid)) return SendClientMessage(playerid, ERROR_COLOR, "[!] Sorry, You don't have the requiered $500 in your wallet.");
else if (DriveTestAlready) return SendClientMessage(playerid, ERROR_COLOR, "[!] Sorry, Somebody else is currently doing there driving test! Please be patient.");
else if (InventInfo[playerid][iCarLic] == 1) return SendClientMessage(playerid, ERROR_COLOR, "[!] You already have a valid drivers license!");
else
{
DrivingTestVeh = CreateVehicle(405,1500.540283,-1039.090209,23.573339,262.772949,-1,-1,10000);
GivePlayerMoney(playerid, 0 - 500);
InBuildingID[playerid] = 0;
TextDrawHideForPlayer(playerid,FCdmv);
SetPlayerInterior(playerid,0);
DriveTest[playerid] = 1;
SetPlayerCheckpoint(playerid, 1558.131713,-1068.965454,23.423524, 4.0);
PutPlayerInVehicle(playerid,DrivingTestVeh,0);
DriveTestAlready = 1;
}
}
return 1;
}