pawn Код:
if(!strcmp(cmd, "/parkcar", true))
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(!dini_Int(GetFile(playerid), "HaveCar")) return SendClientMessage(playerid,red,"You dont have car");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,red,"You are not in a car");
if(vehicleid != CarID(playerid)) return SendClientMessage(playerid,red,".This is not your car");
new Float:X,Float:Y,Float:Z;
new Float:angle;
GetVehiclePos(vehicleid, X, Y, Z);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
dini_FloatSet(VFile(vehicleid), "ParkX", X);
dini_FloatSet(VFile(vehicleid), "ParkY", Y);
dini_FloatSet(VFile(vehicleid), "ParkZ", Z);
SetVehicleToRespawn(vehicleid);
SendClientMessage(playerid,lgreen,".You parked your car");
return 1;
}