29.04.2017, 12:26
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:
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; }