köszi de nekem nem ilyen kell :S
Eddig eljutottam de innen nem nagyon jutok továbbö a kocsivétel errorozik is vki help meeee
#include <a_samp>
#define P_X 747.7859
#define P_Y -543.5135
#define P_Z 15.8657
#define KI_X 740.9020
#define KI_Y -540.5073
#define KI_Z 16.3500
#define KI_ROT 0
#if defined FILTERSCRIPT
enum vAdat
{
Tulaj,
Float:xpos,
Float:ypos,
Float:zpos,
Float:rot,
model,
color1,
color2,
plate[32 + 1]
}
new vInfo[MAX_VEHICLES][vAdat];
#endif
public OnGameModeInit()
{
AddStaticVehicle(560,786.5627,-582.5735,15.8645,0.1454,0,0); //
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
new veh;
if( GetPlayerMoney(playerid) < 10000000 ) return SendClientMessage( playerid, 0xff0000AA, \"Nincs pénzed erre a jármûre!\" );
CreateVehicle(560, KI_X, KI_Y, KI_Z, KI_ROT, 3, 3, 0 );
vInfo[veh][Tulaj] = KI_X;
vInfo[veh][xpos] = KI_X;
vInfo[veh][ypos] = KI_Y;
vInfo[veh][zpos] = KI_Z;
vInfo[veh][rot] = KI_ROT;
vInfo[veh][color1] = 3;
vInfo[veh][color2] = 3;
vInfo[veh][model] = 560;
new vname[64 + 1];
format( vname, 64, \"%03d.txt\", veh );
new File: vfile = fopen(vname);
}
else
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, true);
}
return 1;
}
return 1;
}
stock KocsikBetolt()
{
new string[256 + 1];
new dest[8][64 + 1];
for( new veh = 0; veh < MAX_VEHICLES; veh++ )
{
new vname[64 + 1];
format( vname, 64, \"%03d.dat\", veh );
if( fexist(vname) )
{
new File: vfile = fopen(vname, io_read);
if( vfile )
{
fread( vfile, string );
split( string, dest, \',\' );
}
new vehi = CreateVehicle( strval(dest[6]), floatstr(dest[0]), floatstr(dest[1]), floatstr(dest[2]), floatstr(dest[3]), strval(dest[4]), strval(dest[5]), 0 );
SetVehicleNumberPlate( vehi, dest[7] );
vInfo[vehi][xpos] = floatstr(dest[0]);
vInfo[vehi][ypos] = floatstr(dest[1]);
vInfo[vehi][zpos] = floatstr(dest[2]);
vInfo[vehi][rot] = floatstr(dest[3]);
vInfo[vehi][color1] = strval(dest[4]);
vInfo[vehi][color2] = strval(dest[5]);
vInfo[vehi][model] = strval(dest[6]);
format( vInfo[vehi][plate], 32, \"%s\", dest[7] );
printf( \"ID: %d jármû betöltve.\", vehid );
}
}
return 1;
}
Igen tudom ebbe benne van floriain munkája is és köszönöm neki is