Jump to content
  • 0

Problema Job.


2pacs

Question

Problemă întâlnită (descriere):Salut, de curand am gasit un job interesant intr-un GM, l-am copiat...etc, folosesc comanda /baloti, porneste jobul acum problema mea este: fac curse pana la infinit nu pot oprii jobul.
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul: este pus mai jos.

Imagini / Video (optional):

Aţîncercat să rezolvaţi singur?:Da, am facut comanda /stopbaloti... imi respawneaza masina... sterge CP-urile, dar daca ma urc iar in masina jobului, scriu /baloti... imi spune ca deja lucrez, cum as putea oprii jobul? (ex: /porneste, /opreste.)

[pawn]if (strcmp("/stopbaloti", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pJob] != 8)
{
SendClientMessage(playerid, COLOR_GREY, "Server: Nu esti Distribuitor de baloti!");
return 1;
}
new carid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(carid);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "{21BAE5}Ai terminat treaba pe ziua de azi.");
return 1;
}[/pawn]
[pawn]
if (strcmp("/baloti", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pJob] != 8)
{
SendClientMessage(playerid, COLOR_GREY, "Server: Nu esti Distribuitor de baloti!");
return 1;
}
if(CP[playerid] >= 601 && CP[playerid] <= 604)
{
SendClientMessage(playerid, COLOR_GREY, "Deja lucrezi!");
return 1;
}
new tmpcar;
tmpcar = GetPlayerVehicleID(playerid);
if(IsAbalot(tmpcar))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-90.2143,53.5446,3.1172,9.0);
CP[playerid] = 600;
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Dute la punctul rosu , pentru a incarca balotii!");
return 1;
}
SendClientMessage(playerid, COLOR_RED,"Trebuie sa fi intr-un Camion");
}[/pawn]
 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

[pawn]

if (strcmp("/stopbaloti", cmdtext, true, 10) == 0)
{
    if(PlayerInfo[playerid][pJob] != 8)
    {
        SendClientMessage(playerid, COLOR_GREY, "Server: Nu esti Distribuitor de baloti!");
        return 1;
    }

    if(!(CP[playerid] >= 601 && CP[playerid] <= 604))
    {
        SendClientMessage(playerid, COLOR_GREY, "Nu lucrezi");
        return 1;
    }
    new carid = GetPlayerVehicleID(playerid);
    SetVehicleToRespawn(carid);
    DisablePlayerCheckpoint(playerid);

    CP[playerid] = 0;
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "{21BAE5}Ai terminat treaba pe ziua de azi.");
    return 1;
}[/pawn]

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.