[Question] /car command
#5

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/car", true)) {
        new Float:up[3], carid;
        GetPlayerPos(playerid, up[0], up[1], up[2]);
        carid = CreateVehicle(411, up[0]+2, up[1]+2, up[2], 0, -1, -1, 0);
        PutPlayerInVehicle(playerid, carid, 0);
        SendClientMessage(playerid, -1, "Here's your car");
        return 1;
    }
    return 0;
}
Hey thanks bro it works!

But one last question:

When I am in a interior and I do /car
I didnt see my car but I am in the vehicle, how can I fix that?

And this:

When a player do /car and he will be leave his car, and later he do again /car, that the first car he was spawning will be gone, how can I script that?


Thanks
Reply


Messages In This Thread
[Question] /car command - by mickos - 29.07.2012, 17:12
Re: [Question] /car command - by mickos - 29.07.2012, 18:19
Re: [Question] /car command - by Misiur - 29.07.2012, 18:33
Re: [Question] /car command - by TaLhA XIV - 29.07.2012, 18:35
Re: [Question] /car command - by mickos - 29.07.2012, 19:26
Re: [Question] /car command - by SEnergy - 29.07.2012, 19:38
Re: [Question] /car command - by mickos - 29.07.2012, 19:54
Re: [Question] /car command - by SEnergy - 29.07.2012, 20:03
Re: [Question] /car command - by mickos - 29.07.2012, 20:17
Re: [Question] /car command - by SEnergy - 29.07.2012, 20:29
Re: [Question] /car command - by mickos - 29.07.2012, 20:54
Re: [Question] /car command - by mickos - 30.07.2012, 10:52
Re: [Question] /car command - by SEnergy - 30.07.2012, 11:15
Re: [Question] /car command - by mickos - 30.07.2012, 11:22
Re: [Question] /car command - by cosbraa - 30.07.2012, 11:23
Re: [Question] /car command - by mickos - 30.07.2012, 11:31
Re: [Question] /car command - by maaz - 04.04.2014, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)