help please( good scripters)
#3

Add
Код:
if(!IsVehicleEmpty(i)) return SendClientMessage(playerid,COLOR_WHITE, "The vehicle is occuped.");
Like:
Код:
CMD:vstorage(playerid, params[])
			{
			   	if(AdminDuty[playerid] == 1)
			 	{
			  		SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
					return 1;
				}
				new vstring[1024];
				for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
				if(!IsVehicleEmpty(i)) return SendClientMessage(playerid,COLOR_WHITE, "The vehicle is occuped.");
					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");
				}
				ShowPlayerDialogEx(playerid, VEHICLESTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
				return 1;
			}
Reply


Messages In This Thread
help please( good scripters) - by Rafaeloo - 02.09.2016, 22:00
Re: help please( good scripters) - by Rafaeloo - 02.09.2016, 22:05
Respuesta: help please( good scripters) - by HidroDF - 02.09.2016, 22:33
Re: help please( good scripters) - by Rafaeloo - 02.09.2016, 22:39
Respuesta: help please( good scripters) - by HidroDF - 02.09.2016, 22:41
Re: help please( good scripters) - by Rafaeloo - 02.09.2016, 22:47
Re: help please( good scripters) - by Rafaeloo - 02.09.2016, 22:53
Respuesta: help please( good scripters) - by HidroDF - 02.09.2016, 22:56
Re: help please( good scripters) - by Rafaeloo - 02.09.2016, 23:01
Re: help please( good scripters) - by Rafaeloo - 02.09.2016, 23:06

Forum Jump:


Users browsing this thread: 1 Guest(s)