- 0
Problema Job.
-
Similar Content
-
- 1 reply
- 355 views
-
Problema turf
By Soryn.,
- 3 answers
- 256 views
-
- 1 reply
- 178 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 157 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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