23.07.2011, 22:24
pawn Код:
CMD:boat(playerid, cmdtext[])
{
if (!IsPlayerInWater(playerid)) return SendClientMessage(playerid, -1, "You have to be in water to use this command.");
new V, Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
V = CreateVehicle(446, pos[0], pos[1], pos[2], pos[3], -1, -1, 1000);
PutPlayerInVehicle(playerid, V, 0);
SendClientMessage(playerid, -1, "Enjoy your boat mate! ;)");
return true;
}