22.01.2015, 14:22
this command must spawn vehicle on house spawn coord`s [COORS ARE ON MYSQL] and some cars is not spawning..
also there is /gocar command which must get car in the garage or get vehicle out from garage so ssometimes you can get car in garage but can`t spawn it anymore out of garage [HOUSE COORDS I MEAN SRY FOR MY ENGLISH]
/GOCAR CMD CASE WHICH MUST TAKE CAR OUT [SPAWN OUT OF GARAGE]
also there is /gocar command which must get car in the garage or get vehicle out from garage so ssometimes you can get car in garage but can`t spawn it anymore out of garage [HOUSE COORDS I MEAN SRY FOR MY ENGLISH]
Код:
if(!strcmp(cmd,"/fixcar",true)) { if(GetPlayerMoneyEx(playerid) < 150) return SendClientMessage(playerid,CGRAY,"150$"); if(!pData[playerid][pCar] || (!pData[playerid][pHouse])) return SendClientMessage(playerid,CGRAY,"You Dont Own Car."); SetVehicleToRespawn(gVehicles[pData[playerid][pHouse]][vvID]); AddVehicleComponent(gVehicles[pData[playerid][pHouse]][vvID], pData[playerid][pKolesocar]); SendClientMessage(playerid,CGREEN,"Manqana Gachnda Saxltan"); TransferMoney(playerid,-1,150); }
Код:
case 1: { new houseid = pData[playerid][pHouse]-1; if(GetString(Name2(playerid),gHouses[houseid][houseOwnerID])) { LinkVehicleToInterior(gVehicles[pData[playerid][pHouse]][vvID], 0); SetVehicleVirtualWorld(gVehicles[pData[playerid][pHouse]][vvID], 0); SetVehicleToRespawn(gVehicles[pData[playerid][pHouse]][vvID]); SetPVarInt(playerid,"sdsds",0); }