- 0
Problema comanda /jobs
-
Similar Content
-
- 4 answers
- 585 views
-
Comanda /spec
By VAurel,
- 4 answers
- 214 views
-
- 3 replies
- 254 views
-
- 3 replies
- 217 views
-
Problema turf
By Soryn.,
- 2 answers
- 218 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
StrypS
Am o problema cu comanda /jobs, nu merge sa adaug un job nou...
ASA ARATA COMANDA JOBS
CMD:jobs(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu esti logat.");
if(CP[playerid] < 1 && IsCollectingRubbish[playerid] < 1 && !IsATruck(GetPlayerVehicleID(playerid)) && MechanicCallTime[playerid] < 1 && CheckBus[playerid] < 1 && GotoMats[playerid] < 1 && CarJacker[playerid] < 1 && JCurier[playerid][0] < 1)
{
ShowPlayerDialog(playerid, DIALOG_JOBS, DIALOG_STYLE_TABLIST_HEADERS,"Jobs:", "Job\tOras\n\
Detective\tLos Santos\nDrugs Dealer\tLos Santos\nPizza Boy\tLos Santos\nBus Driver\tLos Santos\nMechanic\tLos Santos\nArms Dealer\tLos Santos\nGarbage\tLas Venturas\nFisherman\tLos Santos\nTrucker\tLos Santos\nFarmer\tLos Santos\nCar Jacker\tLas Venturas\nPocket Thief\tLos Santos\n\
Curier\tLos Santos\nTransportator de Ciment\tLas Venturas\nMuncitor in Cariera\tLos Santos","Select", "Close");
return 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_JOBULETES, DIALOG_STYLE_MSGBOX, "Anulare Checkpoint", "Esti sigur ca vrei sa anulezi checkpoint-ul curent?", "Da", "Nu");
}
return 1;
}
LA SFARSIT MAI ADAUG SI JOB-UL CONSTRUCTOR SI ORASUL LOS SANTOS
APOI MERG LA DIALOG_JOBS SI ARATA ASA:
if(dialogid == DIALOG_JOBS)
{
if(response)
{
if(listitem == 0)
{
SetPlayerCheckpoint(playerid,1474.2523,-1771.2463,18.7958,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 1)
{
SetPlayerCheckpoint(playerid,2165.3982,-1674.2762,15.0813,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 2)
{
SetPlayerCheckpoint(playerid,2122.9814,-1789.0095,13.5547,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 3)
{
SetPlayerCheckpoint(playerid,1448.7821,-2286.4836,13.5469,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 4)
{
SetPlayerCheckpoint(playerid,1597.0013,-2172.9392,13.5547,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 5)
{
SetPlayerCheckpoint(playerid,1365.8931,-1289.0779,13.5469,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 6)
{
SetPlayerCheckpoint(playerid,2503.0581,2778.7229,10.8203,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 7)
{
SetPlayerCheckpoint(playerid,840.9308,-2066.2319,12.8672,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem ==
{
SetPlayerCheckpoint(playerid,-77.5034,-1136.4935,1.0781,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 9)
{
SetPlayerCheckpoint(playerid,-382.8333,-1426.0831,26.2830,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 10)
{
SetPlayerCheckpoint(playerid,2850.9663,891.8728,10.7500,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 11)
{
SetPlayerCheckpoint(playerid,1973.3063,-1304.7975,20.8316,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 12)
{
SetPlayerCheckpoint(playerid,1154.3644,-1181.1787,32.8187,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 13)
{
SetPlayerCheckpoint(playerid,816.6126,857.0764,12.7891,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
if(listitem == 14)
{
SetPlayerCheckpoint(playerid,1972.4215,-1358.8444,14.1548,4.0);
CP[playerid] = 43;
SCM(playerid,COLOR_SERVER,"Ti-am setat un checkpoint pe harta. Te rugam sa-l urmezi!.");
}
}
return 1;
}
SI MAI ADAUG LISTITEM 15 CU COORDONATELE NOULUI JOB DAR PRIMESC 6 ERORI
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.