Salut am si eu o problema la comanda /createcar nu pot sa o folosesc sa creez masina personala
if (strcmp(cmd, "/createcar", true) ==0 )
{
if(!IsPlayerAdmin(playerid)){return 1;}
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){return 1;}
new vehiclemodel = strval(tmp);
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){return 1;}
new color1 = strval(tmp);
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){return 1;}
new color2 = strval(tmp);
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){return 1;}
new price = strval(tmp);
new Float:px,Float:py,Float:pz,Float:pa;
GetPlayerPos(playerid,px,py,pz);
GetPlayerFacingAngle(playerid,pa);
Created++;
VehicleSystem[Created][model]=vehiclemodel;
VehicleSystem[Created][x]=px;
VehicleSystem[Created][y]=py;
VehicleSystem[Created][z]=pz;
VehicleSystem[Created][a]=pa;
VehicleSystem[Created][Farbe1]=color1;
VehicleSystem[Created][Farbe2]=color2;
VehicleSystem[Created][preis]=price;
VehicleSystem[Created][owned]=0;
strmid(VehicleSystem[Created][owner],"dealervehicle",0,128,128);
new ccar = CreateVehicle(VehicleSystem[Created][model],VehicleSystem[Created][x],VehicleSystem[Created][y],VehicleSystem[Created][z],VehicleSystem[Created][a],VehicleSystem[Created][Farbe1],VehicleSystem[Created][Farbe2],600000);
IDIS[ccar]=Created;
SaveTool();
return 1;
}
Mai am o problema tot in legatura cu masinile pers, cand intra oricine pe server toate masinile sunt blocate si in sistemul de masini personale nu am lock
nu am /v lock sau altceva sa inchida masina.Ce pot sa fac sa le deblochez
asa am in vehicle.cfg
Question
ToX1c
Salut am si eu o problema la comanda /createcar nu pot sa o folosesc sa creez masina personala
if (strcmp(cmd, "/createcar", true) ==0 ) { if(!IsPlayerAdmin(playerid)){return 1;} tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new vehiclemodel = strval(tmp); tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new color1 = strval(tmp); tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new color2 = strval(tmp); tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new price = strval(tmp); new Float:px,Float:py,Float:pz,Float:pa; GetPlayerPos(playerid,px,py,pz); GetPlayerFacingAngle(playerid,pa); Created++; VehicleSystem[Created][model]=vehiclemodel; VehicleSystem[Created][x]=px; VehicleSystem[Created][y]=py; VehicleSystem[Created][z]=pz; VehicleSystem[Created][a]=pa; VehicleSystem[Created][Farbe1]=color1; VehicleSystem[Created][Farbe2]=color2; VehicleSystem[Created][preis]=price; VehicleSystem[Created][owned]=0; strmid(VehicleSystem[Created][owner],"dealervehicle",0,128,128); new ccar = CreateVehicle(VehicleSystem[Created][model],VehicleSystem[Created][x],VehicleSystem[Created][y],VehicleSystem[Created][z],VehicleSystem[Created][a],VehicleSystem[Created][Farbe1],VehicleSystem[Created][Farbe2],600000); IDIS[ccar]=Created; SaveTool(); return 1; }Mai am o problema tot in legatura cu masinile pers, cand intra oricine pe server toate masinile sunt blocate si in sistemul de masini personale nu am lock nu am /v lock sau altceva sa inchida masina.Ce pot sa fac sa le deblochez asa am in vehicle.cfg4 answers to this question
Recommended Posts