Vehicle park
#2

Fixed it, sorry for the topic..

Код:
	 case 3:
                        {
                        if(!IsNull(string)) return SEM(playerid,"{ff387a}[Admin]:{ffffff} /vehicle park [You must be driving the Vehicle]");
                        new vehicleid = GetPlayerVehicleID(playerid);
                        if(vehicleid ==0) return SEM(playerid,"{ff387a}[Admin]:{ffffff} /vehicle park [You must be driving the Vehicle]");
                       	if(Iter_Contains(Vehicles,vehicleid))
                        {
                        GetVehiclePos(vehicleid, ServerVehicle[vehicleid][Spawn][0], ServerVehicle[vehicleid][Spawn][1], ServerVehicle[vehicleid][Spawn][2]);
						GetVehicleZAngle(vehicleid, ServerVehicle[vehicleid][Spawn][3]);
                        format(string,sizeof(string),"{ff387a}[Admin]:{ffffff} Vehicle with {ffff00}id %d {ffffff}has been parked!",vehicleid);
                    	SendClientMessage(playerid,COLOR_WHITE,string);
                     	orm_update(ServerVehicle[vehicleid][ORM_ID]);
                }
                        	else SEM(playerid,"{ff0000}[Error]:{ffffff} Invalid vehicle!");
                        }
I had to get the vehicle id and if it was vehicle id 0 it should have sent a the message again.
Reply


Messages In This Thread
Vehicle park - by yvoms - 06.12.2015, 00:12
Re: Vehicle park - by yvoms - 06.12.2015, 00:19

Forum Jump:


Users browsing this thread: 1 Guest(s)