Teleport
#4

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;
}}}
}
Reply


Messages In This Thread
Teleport - by CroM256 - 30.03.2014, 16:07
Re: Teleport - by RenovanZ - 30.03.2014, 16:10
Re: Teleport - by Konstantinos - 30.03.2014, 16:18
Re: Teleport - by CroM256 - 01.04.2014, 11:41
Re: Teleport - by Konstantinos - 01.04.2014, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)