SA-MP Forums Archive
[HELP] - 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: [HELP] (/showthread.php?tid=472710)



[HELP] - PakistaniBaba - 30.10.2013

My server is ROLEPLAY server..
In my server , I have
Код:
/vstorage
CMD
When some one type /vstorage and select his/her car so he/she TP to his car but this is Non-RP , I need system when someone /vstorage his/her car , The car will spawn in that place where he park last time!!!
I want to remove this TP system

HELP me Guy's


Re: [HELP] - Danialdano - 30.10.2013

Show us your code then


Re: [HELP] - PakistaniBaba - 30.10.2013

Код:
CMD:vstorage(playerid, params[])
{
	new vstring[1024];
	for(new i; i < MAX_PLAYERVEHICLES; i++)
	{
		if(PlayerVehicleInfo[playerid][i][pvId] > INVALID_PLAYER_VEHICLE_ID)
			format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);

		else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
			format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);

		else
		format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
	}
	ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "OnStar Vehicle Storage", vstring, "(UN)Store", "Cancel");
	return 1;
}