Nem saját.
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
if(vehicleid == CarInfo[ownedvehicle])
{
new Float:x,Float:y,Float:z;
new Float:a;
GetVehiclePos(vehicleid, x, y, z);
GetVehicleZAngle(vehicleid, a);
CarInfo[cLocationx] = x;
CarInfo[cLocationy] = y;
CarInfo[cLocationz] = z;
CarInfo[cAngle] = a;
}
}
}
return 1;
}
jó lenne de nem menti a fájlba ::|
ha most kilépnék a parancssorból akkor elfelejti a pozíciót
de amúgy nem rossz :) és ötletes is! nem settimer-rel hanem kiszálláskor
és am de hiányos
enum cInfo
{
ownedvehicle,
cLocationx,
cLocationy,
cLocationz,
cAngle
};
new CarInfo[MAX_PLAYERS][cInfo];
és olyan mintha már láttam valahol :-\\