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