/warn /car command help! [REP+]
#3

I suppose /car should spawn a vehicle?

pawn Код:
YCMD:car(PARAMS)
{
    #pragma unused help
    new vxModel, Float:Pos[4];
    if(sscanf(params, "i", vxModel))
        return SendClientMessage(playerid, -1, "Usage: /car[Model]");

    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(playerid, Pos[3]);

    new cCar = CreateVehicle(vxModel, Pos[0], Pos[1], Pos[2], Pos[3], 0, 0, -1);
    PutPlayerInVehicle(playerid, cCar, 0);
    return 1;
}
Reply


Messages In This Thread
/warn /car command help! [REP+] - by [FoR]EveR - 01.04.2012, 14:16
Re: /warn /car command help! [REP+] - by Jack.7331 - 01.04.2012, 14:24
Re: /warn /car command help! [REP+] - by antonio112 - 01.04.2012, 14:30
Re: /warn /car command help! [REP+] - by [FoR]EveR - 01.04.2012, 14:39
Re: /warn /car command help! [REP+] - by antonio112 - 01.04.2012, 14:41
Re: /warn /car command help! [REP+] - by [FoR]EveR - 01.04.2012, 14:51
Re: /warn /car command help! [REP+] - by antonio112 - 01.04.2012, 14:53
Re: /warn /car command help! [REP+] - by [FoR]EveR - 01.04.2012, 14:56
Re: /warn /car command help! [REP+] - by D3XT3R - 01.04.2012, 15:03
Re: /warn /car command help! [REP+] - by fiki574 - 01.04.2012, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)