14.05.2016, 12:50
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.
Any ideas?? I am confused because it would be easy with only 1 spawn place. I want random
Код:
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; }