23.02.2017, 14:41
Hello!
You can do it like this:
If you have some questions then feel free to ask.
You can do it like this:
PHP код:
//under the includes:
new PlayersVehicle[MAX_PLAYERS] = {-1,...};
//OnPlayerConnect:
PlayersVehicle[playerid] = -1;
//in your command:
if(PlayersVehicle[playerid] > -1)
{
DestroyVehicle(PlayersVehicle[playerid]);
}
PlayersVehicle[playerid] = CreateVehicle(vehicle, x, y, z, a+90, -1, -1, -1);
![Wink](images/smilies/wink.png)