Vehicle for specific player
#1

Код:
PlayerPrivateVehicle[???][name]=CreateVehicle(....
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(vechileid==PlayerPrivateVehicle[???][name])
        {
        new string[64];
        format(string, sizeof(string),This car is owned by %s", name);
        SendClientMessage(playerid, -1, string);
        }
	return 1;
}
I'm trying to create private vehicle system and I don't really know how to create car for specific player when he joins server. I think I could use for cycle for vehicle ID creating, something like
Код:
for(new i; i<MAX_VEHICLES; i++) { if(PlayerPrivateVehicle[i][name]==0){ PlayerPrivateVehicle[i][name]=CreateVehicle(....);} }
But I still don't know how to set vehicle for one specific player...
Reply


Messages In This Thread
Vehicle for specific player - by Supermaxultraswag - 14.09.2015, 17:04
AW: Vehicle for specific player - by Nero_3D - 14.09.2015, 18:43
Re : Vehicle for specific player - by KillerDVX - 14.09.2015, 22:38
Re: Vehicle for specific player - by Supermaxultraswag - 18.09.2015, 15:25
Re: Vehicle for specific player - by Mister0 - 18.09.2015, 15:30
Re: Vehicle for specific player - by Supermaxultraswag - 18.09.2015, 15:33
Re: Vehicle for specific player - by Mister0 - 18.09.2015, 15:45
Re: Vehicle for specific player - by rappy93 - 18.09.2015, 15:46
Re: Vehicle for specific player - by Jefff - 18.09.2015, 15:47
Re: Vehicle for specific player - by Supermaxultraswag - 03.10.2015, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)