- 0
Problema Job.
-
Similar Content
-
- 3 answers
- 150 views
-
eroare job
By viji,
- 5 answers
- 73 views
-
- 0 replies
- 119 views
-
- 1 reply
- 228 views
-
- 37 replies
- 6,650 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
By viji,
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.
Question
2pacs
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ţi î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