car spawning problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: car spawning problem (
/showthread.php?tid=559314)
car spawning problem -
georgian1 - 22.01.2015
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]
Код:
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);
}
/GOCAR CMD CASE WHICH MUST TAKE CAR OUT [SPAWN OUT OF GARAGE]
Код:
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);
}
Re: car spawning problem -
georgian1 - 22.01.2015
BUMP!