Vehicle
#1

So i want to make derby map. I have map but also i have problem. I want when player trype /derby to join on random coords on map and to be putted in veh. I did this but it doesn't work.
Код:
CMD:derby(playerid, params[])
{
	PlayerJoinedDerby[playerid] = 1;
	new randomcoords = random(sizeof(DBSpawn));
	SPP(playerid, DBSpawn[randomcoords][0], DBSpawn[randomcoords][1], DBSpawn[randomcoords][2]);
	PutPlayerInVehicle(playerid, veh, 0);
	LoadObjectsForPlayer(playerid);
	return 1;
}
Any ideas?? I am confused because it would be easy with only 1 spawn place. I want random
Reply


Messages In This Thread
Vehicle - by Micko123 - 14.05.2016, 12:50
Re: Vehicle - by Miller007 - 14.05.2016, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)