29.02.2012, 15:22 
	(
 Последний раз редактировалось FlapnaadPro; 01.03.2012 в 21:05.
					
					
						Причина: Added signature.
)
	
	
		Hello everyone,
I've been trying to figure out how to make a command like: /createveh [Vehicle TYPE],
which then spawns that vehicle on my possition, forcing me behind the wheel.
I do have a /deleteveh cmd which is fully functional without bugs nor errors and looks like this:
Been using that to figure out the /createveh command,
but hasn't worked for me so far.
Been struggeling with this for a couple of days now,
help would be much appreciated.
Regards,
FlapnaadPro
EDIT:
I do know that deleting a vehicle has nothing to do with creating one,
but this may help you understand how I am currently attempting to learn scripting.
Thus helping you to help me.
	
	
	
I've been trying to figure out how to make a command like: /createveh [Vehicle TYPE],
which then spawns that vehicle on my possition, forcing me behind the wheel.
I do have a /deleteveh cmd which is fully functional without bugs nor errors and looks like this:
Код:
CMD:deleteveh(playerid, params[])
{
 	if ( GetPVarInt( playerid, "Level" ) < 4 )
	    return SendClientMessage( playerid, -1, "You must be the "COL_LIGHTBLUE""Level4"{FFFFFF} to delete a vehicle.");
	{
	new vehicleid, string[64];
	if(!sscanf(params, "i", vehicleid))
	{
 		DestroyVehicle(vehicleid);
		format(string, sizeof(string), ""COL_LIGHTBLUE"Vehicle ID:{FFFFFF} %d has been succesfully deleted.", vehicleid);
  		SendClientMessage(playerid, 0xFFFFFFFF, string);
  		return 1;
  		}
 	if ( sscanf( params, "uS", params[ 0 ]) )
 	return SendClientMessage( playerid, -1, ""COL_LIGHTBLUE"Usage:{FFFFFF} /deleteveh <Vehicle ID>");
  	}
	return 1;
}
but hasn't worked for me so far.
Been struggeling with this for a couple of days now,
help would be much appreciated.
Regards,
FlapnaadPro
EDIT:
I do know that deleting a vehicle has nothing to do with creating one,
but this may help you understand how I am currently attempting to learn scripting.
Thus helping you to help me.



