[MySql] /park and /vehicles - 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: [MySql] /park and /vehicles (
/showthread.php?tid=633337)
[MySql] /park and /vehicles -
aoky - 29.04.2017
I want to script it so when a player spawns into the server his vehicles will be in a different virtual world for example, then when he types /myvehicles (already a command) it displays his vehicles then when he selects the vehicle it will spawn in it in. When he gets into the vehicle and does /park in the location where he spawned it, it will despawn into the different virtual world. This is a bit advanced but if you are willing to help reply here or add my skype:
austinkoky12@outlook.com
Thanks.
As you can see here it is already a command:
Код:
CMD:myvehicles(playerid, params[])
{
new str[128], dialog[1000];
for (new i = 0; i < MAX_VEHICLES; ++i)
{
if(GetVehicleModel(i))
{
if(Vehicles[i][Owner] == Character[playerid][ID])
{
format(str, sizeof(str), "%s (%d)\n", VehicleNames[GetVehicleModel(i)-400], i);
strcat(dialog, str, sizeof(dialog));
}
}
}
Dialog_Show(playerid, None, DIALOG_STYLE_LIST, "My Vehicles", dialog, "Close","");
return 1;
}