CheckPoint freeze when boat come.
#1

So this is the point when someone use the command /umats he with his boat need to go to the checkpoint but when he come there the checkpoint not showing the next other, btw also there problem like you can drive the boat if you dont have job like other jobs which are with cars they work like if you are not mech you cant drive the mech cars.

1. CMD:

pawn Код:
CMD:umats(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Moras biti logovan da bi koristio ovu komandu.");
    if(PlayerInfo[playerid][pJob] != JOB_MATS && PlayerInfo[playerid][pVIPJob] != JOB_MATS) return SendClientMessage(playerid, COLOR_GREY, "Ti nisi Skupjac Materijala.");
    new veh;
    veh = GetPlayerVehicleID(playerid);
    if(!MatsCar(veh)) return SendClientMessage(playerid, COLOR_GREY, "Moras biti u vozilo da bi koristeo ovu komandu.");
    MatsJob[playerid] = 1;
    SetPlayerCheckpoint(playerid, MatsSob1, 3.0);
    GiveDodMoney(playerid, -800);
    SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Platio si {00B9FF}800${FAFAFA} za da soberes {00B9FF}500{FAFAFA} mats.");
    SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Sad sledi tocke na mape i soberi {00B9FF}500{FAFAFA} mats.");
    return 1;
}
2. CheckPoint
pawn Код:
if(MatsCar(vehicleid))
     {
        if(MatsJob[playerid] == 1){
            MatsJob[playerid] = 2;
            SetPlayerCheckpoint(playerid,MatsSob1,10);
            SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}LOKACIJA{FAFAFA}]: Vozi do lokaciju gde treba da uzes matsa.");
            return 1;
         }
        if(MatsJob[playerid] == 2){
            MatsJob[playerid] = 3;
            SetPlayerCheckpoint(playerid,MatsSob2,10);
          SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Uzeo si {00B9FF}GPS{FAFAFA} lokaciju za sobiranje matsa.");
          SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}LOKACIJA{FAFAFA}]: Sledeca lokacije ti je da uzmes mats sa mesto.");
            return 1;
         }
        if(MatsJob[playerid] == 3){
            MatsJob[playerid] = 4;
            SetPlayerCheckpoint(playerid,MatsSob3,10);
          SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Uzeo si {00B9FF}500{FAFAFA} mats.");
          SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}LOKACIJA{FAFAFA}]: Sledeca lokacije ti je da prerabotis materijali sledi tocku.");
            return 1;
         }
        if(MatsJob[playerid] == 4){
            MatsJob[playerid] = 0;
            PlayerInfo[playerid][pMaterials] += 500;
            SendClientMessage(playerid, COLOR_WHITE, "[{FFD200}INFO{FAFAFA}]: Prerabotio si i sobrao {00B9FF}500{FAFAFA} mats.");
            new veh;
            veh = GetPlayerVehicleID(playerid);
            SetVehicleToRespawn(veh);
            DisablePlayerCheckpoint(playerid);
         }
     }
3. Cars
pawn Код:
stock MatsCar(vehicleid)
{
    for(new i=0; i<16; i++)
    {
        if(vehicleid == JobInfo[JOB_MATS][matCar][i]) return 1;
    }
    return 0;
}
pawn Код:
JobInfo[JOB_MATS][matCar][0] = AddStaticVehicleEx(446,2182.50000000,-156.30000305,0.00000000,90.00000000,-1,-1,15); //Squalo
    JobInfo[JOB_MATS][matCar][1] = AddStaticVehicleEx(446,2182.50000000,-151.09960938,0.00000000,90.00000000,-1,-1,15); //Squalo
    JobInfo[JOB_MATS][matCar][2]  = AddStaticVehicleEx(452,2182.69995117,-175.89999390,0.00000000,88.00000000,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][3] = AddStaticVehicleEx(452,2182.80004883,-163.19999695,0.00000000,87.99499512,-1,-1,15); //Speeder
    JobInfo[JOB_MATS][matCar][4]  = AddStaticVehicleEx(452,2182.79980469,-169.39941406,0.00000000,87.99499512,-1,-1,15); //Speeder
    JobInfo[JOB_MATS][matCar][5]  = AddStaticVehicleEx(452,2182.80004883,-181.39999390,0.00000000,87.99499512,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][6]  = AddStaticVehicleEx(452,2192.80004883,-188.39999390,0.00000000,179.99493408,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][7] = AddStaticVehicleEx(452,2211.80004883,-188.00000000,0.00000000,179.99450684,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][8]  = AddStaticVehicleEx(452,2199.00000000,-188.30000305,0.00000000,179.99450684,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][9]  = AddStaticVehicleEx(452,2205.09960938,-188.19921875,0.00000000,179.99450684,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][10]  = AddStaticVehicleEx(452,2227.69995117,-188.10000610,0.00000000,179.99450684,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][11]  = AddStaticVehicleEx(452,2216.69921875,-188.00000000,0.00000000,179.99450684,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][12] = AddStaticVehicleEx(452,2223.19921875,-188.19921875,0.00000000,179.99450684,1,1,15); //Speeder
    JobInfo[JOB_MATS][matCar][13]  = AddStaticVehicleEx(473,2184.89990234,-145.00000000,0.00000000,90.00000000,-1,-1,15); //Dinghy
    JobInfo[JOB_MATS][matCar][14]  = AddStaticVehicleEx(473,2171.39990234,-145.10000610,0.00000000,90.00000000,-1,-1,15); //Dinghy
    JobInfo[JOB_MATS][matCar][15]  = AddStaticVehicleEx(473,2178.19921875,-145.00000000,0.00000000,90.00000000,-1,-1,15); //Dinghy

This work for other but only for this boats not work.
pawn Код:
if(MatsCar(newcar))
        {
            if(PlayerInfo[playerid][pJob] == JOB_PRODUKTE || PlayerInfo[playerid][pVIPJob] == JOB_PRODUKTE) { }
            else { RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, COLOR_GREY,"Nisi Vozac Produkte da bi vozio ovo auto."); }
        }
Reply
#2

Maybe...

PHP код:
if(MatsCar(vehicleid))
     {
        if(
MatsJob[playerid] == 1){
            
MatsJob[playerid] = 2;
            
SetPlayerCheckpoint(playerid,MatsSob2,10);
            
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}LOKACIJA{FAFAFA}]: Vozi do lokaciju gde treba da uzes matsa.");
            return 
1;
         }
        if(
MatsJob[playerid] == 2){
            
MatsJob[playerid] = 3;
            
SetPlayerCheckpoint(playerid,MatsSob3,10);
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}INFO{FAFAFA}]: Uzeo si {00B9FF}GPS{FAFAFA} lokaciju za sobiranje matsa.");
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}LOKACIJA{FAFAFA}]: Sledeca lokacije ti je da uzmes mats sa mesto.");
            return 
1;
         }
        if(
MatsJob[playerid] == 3){
            
MatsJob[playerid] = 4;
            
SetPlayerCheckpoint(playerid,MatsSob4,10);
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}INFO{FAFAFA}]: Uzeo si {00B9FF}500{FAFAFA} mats.");
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}LOKACIJA{FAFAFA}]: Sledeca lokacije ti je da prerabotis materijali sledi tocku.");
            return 
1;
         }
        if(
MatsJob[playerid] == 4){
            
MatsJob[playerid] = 0;
            
PlayerInfo[playerid][pMaterials] += 500;
            
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}INFO{FAFAFA}]: Prerabotio si i sobrao {00B9FF}500{FAFAFA} mats.");
            new 
veh;
            
veh GetPlayerVehicleID(playerid);
            
SetVehicleToRespawn(veh);
            
DisablePlayerCheckpoint(playerid);
         }
     } 
Reply
#3

Quote:
Originally Posted by HardRock
Посмотреть сообщение
Maybe...

PHP код:
if(MatsCar(vehicleid))
     {
        if(
MatsJob[playerid] == 1){
            
MatsJob[playerid] = 2;
            
SetPlayerCheckpoint(playerid,MatsSob2,10);
            
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}LOKACIJA{FAFAFA}]: Vozi do lokaciju gde treba da uzes matsa.");
            return 
1;
         }
        if(
MatsJob[playerid] == 2){
            
MatsJob[playerid] = 3;
            
SetPlayerCheckpoint(playerid,MatsSob3,10);
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}INFO{FAFAFA}]: Uzeo si {00B9FF}GPS{FAFAFA} lokaciju za sobiranje matsa.");
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}LOKACIJA{FAFAFA}]: Sledeca lokacije ti je da uzmes mats sa mesto.");
            return 
1;
         }
        if(
MatsJob[playerid] == 3){
            
MatsJob[playerid] = 4;
            
SetPlayerCheckpoint(playerid,MatsSob4,10);
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}INFO{FAFAFA}]: Uzeo si {00B9FF}500{FAFAFA} mats.");
          
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}LOKACIJA{FAFAFA}]: Sledeca lokacije ti je da prerabotis materijali sledi tocku.");
            return 
1;
         }
        if(
MatsJob[playerid] == 4){
            
MatsJob[playerid] = 0;
            
PlayerInfo[playerid][pMaterials] += 500;
            
SendClientMessage(playeridCOLOR_WHITE"[{FFD200}INFO{FAFAFA}]: Prerabotio si i sobrao {00B9FF}500{FAFAFA} mats.");
            new 
veh;
            
veh GetPlayerVehicleID(playerid);
            
SetVehicleToRespawn(veh);
            
DisablePlayerCheckpoint(playerid);
         }
     } 
Nope same as before also there no checkpoint MatsJob4 there only MatsJob1 MatsJob2 MasJob3.
And the also there problem in the cars if you read everything you can see the boats are not locked and the player is not removed everyone can drive then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)