spawning vehicle help needed :D
#1

hey, i only just started pawno recently (had experience with python before mind you) and was wondering if anyone could help me. i want to make it so when someone types /spawn (vehicleid) that it spawns it at them, and puts them in drivers seat. i got this far for making teh car, but couldnt get the player in the car. any help?
Код:
dcmd_spawn(playerid, params[])
{
	new Car = strval(params);
	if (strlen(params))
	{
		new Float:angle, Float:x, Float:y, Float:z;
		GetPlayerPos(playerid, x, y, z);
		GetPlayerFacingAngle(playerid, angle);
		CreateVehicle(Car, x, y, z+2, angle, -1, -1, -1);
		return 1;
	}
	else
	{
	  SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/spawn [vehicle id]\"");
	}
	
	return 1;
}
Reply


Messages In This Thread
spawning vehicle help needed :D - by kazai - 02.07.2009, 05:45
Re: spawning vehicle help needed :D - by Grim_ - 02.07.2009, 05:47
Re: spawning vehicle help needed :D - by kazai - 02.07.2009, 05:59
Re: spawning vehicle help needed :D - by Grim_ - 02.07.2009, 06:05

Forum Jump:


Users browsing this thread: 2 Guest(s)