11.08.2009, 21:00
Hello there
I was making this nice busroute with streamed checkpoints. I made 12 checkpoints where the player must go to earn money..now with entering a checkpoint it should disable that checkpoint. gives the player some money and then creates the net checkpoint.
It worked on the first checkpoint and then the second one but after i added them all it turns out that the rest of the checkpoints being ignored and only shows the last one.
I dont know how to fix this its realy frustrating here is how i added it (above ongamemodeinit are the new bus0;,bus1; etc..and the first checkpoint is called with a command wich is working correctly)
I hope someone can explain thank you
I was making this nice busroute with streamed checkpoints. I made 12 checkpoints where the player must go to earn money..now with entering a checkpoint it should disable that checkpoint. gives the player some money and then creates the net checkpoint.
It worked on the first checkpoint and then the second one but after i added them all it turns out that the rest of the checkpoints being ignored and only shows the last one.
I dont know how to fix this its realy frustrating here is how i added it (above ongamemodeinit are the new bus0;,bus1; etc..and the first checkpoint is called with a command wich is working correctly)
Код:
if(streamid == bus0)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus0)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus0, false );
bus1 = CreateCheckpoint(playerid,2039.7808,1035.9279,10.6719,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus1)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus1)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus1, false );
bus2 = CreateCheckpoint(playerid,2173.9556,967.5127,10.8203,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus2)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus2)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus2, false );
bus3 = CreateCheckpoint(playerid,2279.9785,782.5641,10.8203,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus3)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus3)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus3, false );
bus4 = CreateCheckpoint(playerid,2826.2451,1312.6614,10.7668,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus4)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus4)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus4, false );
bus5 = CreateCheckpoint(playerid,2581.8271,2117.9326,10.6719,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus5)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus5)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus5, false );
bus6 = CreateCheckpoint(playerid,2127.7058,2356.1235,10.6719,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
//
if(streamid == bus6)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus6)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus6, false );
bus7 = CreateCheckpoint(playerid,1572.1332,2361.7007,10.6719,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus7)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus7)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus7, false );
bus8 = CreateCheckpoint(playerid,1432.0265,2608.1846,10.6719,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
//
}
//
if(streamid == bus8)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus8)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus8, false );
bus9 = CreateCheckpoint(playerid,1562.2899,2201.3308,10.8203,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
if(streamid == bus9)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus9)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus9, false );
bus10 = CreateCheckpoint(playerid,1642.9137,1807.5997,10.6797,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus10)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus10)
GameTextForPlayer(playerid,"You entered with a bus!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus10, false );
bus11 = CreateCheckpoint(playerid,1728.1095,1530.6904,10.6643,3.0,10000.0);//R4d
GivePlayerMoney(playerid, 50);
}
//
if(streamid == bus11)
GameTextForPlayer(playerid,"You didnt enter with a bus !",3000,5);
busid= GetPlayerVehicleID(playerid);
if(busid==LVbus)
{
if(streamid == bus11)
GameTextForPlayer(playerid,"JOB COMPLETE!",3000,5);
new currentState = GetPlayerState(playerid);
if (currentState == PLAYER_STATE_DRIVER)
TogglePlayerCheckpoint(playerid, bus11, false );
GivePlayerMoney(playerid, 50);
}

