it is possible
#5

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;
}
Untested, but it should work.
Reply


Messages In This Thread
it is possible - by Rafa - 23.07.2011, 22:13
Re: it is possible - by Fj0rtizFredde - 23.07.2011, 22:15
Re: it is possible - by iPLEOMAX - 23.07.2011, 22:16
Re: it is possible - by Rafa - 23.07.2011, 22:19
Re: it is possible - by iPLEOMAX - 23.07.2011, 22:24
Re: it is possible - by Rafa - 23.07.2011, 22:28
Re: it is possible - by iPLEOMAX - 23.07.2011, 22:29
Re: it is possible - by jameskmonger - 23.07.2011, 22:31
Re: it is possible - by Rafa - 23.07.2011, 22:32
Re: it is possible - by jameskmonger - 23.07.2011, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)