- 0
Bug PNS
-
Similar Content
-
- 7 replies
- 638 views
-
- 10 answers
- 3.225 views
-
- 3 answers
- 896 views
-
- 16 answers
- 2.631 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
TheGodfather
Salut, am vrut sa adaug un nou PNS, cand intru in el ma da si scoate la alt PNS. Am adaugat PNS in baza de date, cu coordonate cu tot. In GM am asa:
new Float: PutVehiclePNS[5][4] = {
{1975.3617,2162.3789,10.7974,268.9753},
{1024.8359,-1025.1244,31.8286,1.4482},
{720.1768, -456.4775, 15.4988,1.0200},
{720.1006,-458.8903,16.0630,0.0031}
//2newpns
,{487.4117, -1741.3563, 10.8499, 173.0401}
//2newpns
};
new Float: ExitVehiclePNS[5][4] = {
{1963.0897,2162.2114,10.5474,89.7477},
{1024.9517,-1034.4995,31.4208,177.5887},
{720.0970,-466.9240,16.0688,181.9951},
{720.1700,-467.4203,16.0688,178.9350}
//2newpns
,{488.8409, -1730.2566, 10.9630, 353.4602}
//2newpns
};
Ce e intre // sunt locatiile de la PNS pe care vreau sa il adaug.
function PutVehicleInPNS(playerid, idd) {
LastPns[playerid] = idd;
SetVehiclePos(GetPlayerVehicleID(playerid), PutVehiclePNS[idd][0], PutVehiclePNS[idd][1], PutVehiclePNS[idd][2]);
SetVehicleZAngle(GetPlayerVehicleID(playerid), PutVehiclePNS[idd][3]);
GetVehicleHealth(GetPlayerVehicleID(playerid), VehicleHealth[playerid]);
TogglePlayerControllable(playerid, false);
PnsTimer[playerid] = gettime()+5;
return true;
}
if(PnsTimer[playerid] != -1) return true;
for(new i = 1; i <= GpsBizzType[14]; i++) {
idd = BizzTypeID[14][i];
if(!PlayerToPoint(10, playerid, BizzInfo[idd][bEntranceX], BizzInfo[idd][bEntranceY], BizzInfo[idd][bEntranceZ]))
continue;
PutVehicleInPNS(playerid, i-1);
cc = true;
break;
}
Am incercat aici la PutVehicleInPNS in loc de i-1 sa pun i dar dupa nu mai merge in celelalte bizuri de tip PNS. Bizurile de tip PNS au numarul 14 in baza de date ca biz.
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now