Üdv!
Csinálgatok egy munka FS-t.
Az a probléma hogy az uutsiztító checkpointok összebugolnak a kukás checkpintokkal....
De miért???
new UttJob[257];
new KukaJob[260];
public OnPlayerEnterCheckpoint(playerid)
{
if(UttJob[playerid] == 1){
UttJob[playerid] = 2;
SetPlayerCheckpoint(playerid,1927.9983,2163.2249,10.6719,3);
return 1;
}
if(UttJob[playerid] == 2){
UttJob[playerid] = 3;
SetPlayerCheckpoint(playerid,1866.2133,2173.1252,10.6719,3);
return 1;
}
if(UttJob[playerid] == 3){
UttJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid,5000);
new Uttveh;
Uttveh = GetPlayerVehicleID(playerid);
DestroyVehicle(Uttveh);
}
//=======================================================================================//
//=======================================================================================//
//=======================================================================================//
//=======================================================================================//
if(KukaJob[playerid] == 1){
KukaJob[playerid] = 2;
SetPlayerCheckpoint(playerid,1843.8240,-1306.3604,13.3899,3);
Object(playerid);
GameTextForPlayer(playerid,\"~y~Kuka Urites!\",2500,4);
return 1;
}
if(KukaJob[playerid] == 2){
KukaJob[playerid] = 3;
GameTextForPlayer(playerid,\"~y~Kuka Urites!\",2500,4);
Object(playerid);
SetPlayerCheckpoint(playerid,1742.1877,-1302.0734,13.4688,3);
return 1;
}
if(KukaJob[playerid] == 3){
KukaJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid,5000);
new kukaveh;
kukaveh = GetPlayerVehicleID(playerid);
DestroyVehicle(kukaveh);
}
return 1;
}