Вот код:
if (strcmp(cmd, "/park", true) ==0 )
{
if(PlayerInfo[playerid][pCKey]>0)
{
if(IsPlayerInBuyVehicle(playerid,PlayerInfo[playerid][pCKey])==0)
{
SendClientMessage(playerid,COLOR_GRAD1,"Вы должны находиться в купленном автомобиле!");
return 1;
}
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(GetCreatorID(vehicleid)!=0)
{
new Float:vx,Float:vy,Float:vz,Float:va;
GetVehiclePos(GetPlayerVehicleID(playerid),vx,vy,vz);
GetVehicleZAngle(GetPlayerVehicleID(playerid),va);
VehicleSystem[GetCreatorID(vehicleid)][xCA]=vx;
VehicleSystem[GetCreatorID(vehicleid)][yCA]=vy;
VehicleSystem[GetCreatorID(vehicleid)][zCA]=vz;
VehicleSystem[GetCreatorID(vehicleid)][aCA]=va;
SendClientMessage(playerid,COLOR_GRAD1,"Теперь ваш автомобиль будет стоять здесь!");
SaveCar(PlayerInfo[playerid][pVeh]);
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"у вас нет личного автомобиля!");
}
return 1;
}