SA-MP Forums Archive
Vehicle not spawned - 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: Vehicle not spawned (/showthread.php?tid=620926)



Vehicle not spawned - ariel918 - 04.11.2016

Hey there.. im take from defent mode some cmd /vstorage
and he working on the server but the cars not spawned.. i mean im login to the server and the cars respawn alone.. what im doing?
Quote:

CMD:vstorage(playerid, params[])
{
new vstring[1024];
for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[iModelID]);
}
else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[iModelID]);
}
else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[iModelID]);
}
else format(vstring, sizeof(vstring), "%s\n%s (spawned)", vstring, VehicleName[iModelID]);
}
else strcat(vstring, "\nEmpty");
}
ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
return 1;
}




Respuesta: Vehicle not spawned - Ner0x96 - 04.11.2016

Search in your GM the part where the vehicles spawns and delete or comment ( /* */ ) it.
Then in your dialog 'VSTORAGE' make them spawn.


Re: Respuesta: Vehicle not spawned - ariel918 - 04.11.2016

Quote:
Originally Posted by Ner0x96
Посмотреть сообщение
Search in your GM the part where the vehicles spawns and delete or comment ( /* */ ) it.
Then in your dialog 'VSTORAGE' make them spawn.
you dont know where this spawn vehicles cmd ?