01.04.2014, 11:41
Konstantinos this works, but now every player on derby is spawned on x=d2[0][0] y=d2[0][1] z=d2[0][2]
Код:
if(derbycount > 1) { derbyon = 1; SetTimer("derbystart", 3000, 0); for(new i=0; i < MAX_PLAYERS; i++) { if(derby[i] == 88) { for (new j; j != sizeof (derbyspawns3_available); ++j) { if (derbyspawns3_available[j]) continue; GameTextForPlayer(i, "3", 1000, 6); SetTimerEx("tri", 1000, 0, "i", i); derbyspawns3_available[j] = true; new veh = CreateVehicle(541,0,0,0, derbyspawns3[0][3],-1,-1,-1); SetVehiclePos(veh, derbyspawns3[0][0], derbyspawns3[0][1],derbyspawns3[0][2]); SetPlayerVirtualWorld(i, 8888); SetVehicleVirtualWorld(veh, 8888); PutPlayerInVehicle(i,veh,0); TogglePlayerControllable(i, 0); derbyfall[i] = 0; dsp[i] = 0; SetCameraBehindPlayer(i); isalive[i] =1; break; }}} }