02.07.2009, 05:45
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;
}

