07.01.2012, 13:44
Well, I want to make a new thing in my script. I want that when player spawns, the script will make a vehicle and put him inside of it. How to do this? This is when dies too.
public OnPlayerSpawn(playerid)
{
new sVehicle,
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
sVehicle = CreateVehicle(411, x, y, z, angle, 6, 6, 60);
return PutPlayerInVehicle(playerid, sVehicle, 0);
}
public OnPlayerSpawn(playerid)
{
new sVehicle, Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
sVehicle = CreateVehicle(411, x, y, z, angle, 6, 6, 60);
return PutPlayerInVehicle(playerid, sVehicle, 0);
}