Pomoc - Kratica

Započeo Benac, Mart 15, 2014, 20:23:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

GM:
PROBLEM: kako bi ja tu komandu zamijenio da se samo stisne "Y" slovo
DIO SKRIPTE:
CMD:posao(playerid, params[])
{
    //#pragma unused help
//#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"SERVER | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1752.8291,-1894.0505,13.5573))
{
    if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 1 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_BUSVOZAC;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao bus vozac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/linija /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1961.1292,-1244.8138,19.9714))
{
    if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 1 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KOSACTRAVE;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao kosac trave!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/kositravu /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1791.7041,-1303.4011,13.5310))
{
    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 2 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_MEHANICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao mehanicar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"CTRL da zakacite/otkacite vozilo | /popravi | /napuni");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 986.7067,-1251.8522,16.9844))
{
    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 2 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_POSTAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao postar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/posta /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1569.8850,-1552.9240,13.5536))
{
    if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 3 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KOMUNALAC;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao komunalac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/komunalno /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1882.0570,-1596.7355,13.5595))
{
    if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 3 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_GRADJEVINAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao gradjevinar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/malter /poravnaj /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1145.5222,-1294.5692,13.6356))
{
    if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 4 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_BOLNICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao bolnicar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/izleci /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 940.5929,-1085.7225,24.2962))
{
    if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 4 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_GROBAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao grobar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/grobar /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 2351.9797,-1170.0458,28.0445))
{
    if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 5 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_DZEPAROS;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao dzeparos!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/ukradi");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, -38.5563,56.3204,3.1172))
{
    if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 5 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_FARMER;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao farmer!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/mlijeko /oranje /vrsenje");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1743.0222,-1943.9714,13.5683))
{
    if(PlayerInfo[playerid][pLevel] < 6) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 6 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_MASINOVODJA;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao masinovodja!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/voz");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1628.9937,-1848.0186,13.5378))
{
    if(PlayerInfo[playerid][pLevel] < 6) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 6 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_DOSTAVLJAC;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao dostavljac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/uzmikutiju /utovari /istovari");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1811.3263,-2066.6699,13.5541))
{
    if(PlayerInfo[playerid][pLevel] < 7) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 7 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KAMIONDZIJA;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao kamiondzija!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/tura /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1892.8370,-2328.5259,13.5469))
{
    if(PlayerInfo[playerid][pLevel] < 7) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 7 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_PILOT;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao pilot!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/let");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1083.2322,-1226.7747,15.8203))
{
    if(PlayerInfo[playerid][pLevel] < 8) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 8 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_ELEKTRICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao elektricar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/kvar /oprema");
}
else return SCM(playerid, -1, ""SPLAVA"[SERVER]: "BIJELA"Niste na mjestu zaposljavanja!");
return 1;
}

SLIKA:[/b]
TUTORIALI :

Big Respect: " C++ "  (Majke mi nepamtim boljeg moderatora pawno sekcije, dada Blaeks je nekad bio :P)


Citat: Blaeks poslato Mart 15, 2014, 20:26:47 POSLE PODNE
KEY_YES
al kako da napravim to brate, nikad nisam radio
TUTORIALI :

Big Respect: " C++ "  (Majke mi nepamtim boljeg moderatora pawno sekcije, dada Blaeks je nekad bio :P)

#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))


if(PRESSED(KEY_YES))
{
}
69

Citat: [UG]C++ poslato Mart 15, 2014, 20:56:30 POSLE PODNE
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))


if(PRESSED(KEY_YES))
{
}

to mjenjam sa cmd ? CMD:dvafcawd(pplayerid,....) ili ispod ?
TUTORIALI :

Big Respect: " C++ "  (Majke mi nepamtim boljeg moderatora pawno sekcije, dada Blaeks je nekad bio :P)


Citat: [UG]C++ poslato Mart 15, 2014, 21:13:43 POSLE PODNE
sta bre=
nerazumijem kako da napravim ?
TUTORIALI :

Big Respect: " C++ "  (Majke mi nepamtim boljeg moderatora pawno sekcije, dada Blaeks je nekad bio :P)

if(PRESSED(KEY_YES))
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1752.8291,-1894.0505,13.5573))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 1 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_BUSVOZAC;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao bus vozac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/linija /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1961.1292,-1244.8138,19.9714))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 1 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KOSACTRAVE;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao kosac trave!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/kositravu /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1791.7041,-1303.4011,13.5310))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 2 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_MEHANICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao mehanicar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"CTRL da zakacite/otkacite vozilo | /popravi | /napuni");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 986.7067,-1251.8522,16.9844))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 2 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_POSTAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao postar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/posta /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1569.8850,-1552.9240,13.5536))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 3 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KOMUNALAC;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao komunalac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/komunalno /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1882.0570,-1596.7355,13.5595))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 3 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_GRADJEVINAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao gradjevinar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/malter /poravnaj /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1145.5222,-1294.5692,13.6356))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 4 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_BOLNICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao bolnicar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/izleci /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 940.5929,-1085.7225,24.2962))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 4 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_GROBAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao grobar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/grobar /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 2351.9797,-1170.0458,28.0445))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 5 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_DZEPAROS;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao dzeparos!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/ukradi");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, -38.5563,56.3204,3.1172))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 5 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_FARMER;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao farmer!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/mlijeko /oranje /vrsenje");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1743.0222,-1943.9714,13.5683))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 6) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 6 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_MASINOVODJA;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao masinovodja!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/voz");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1628.9937,-1848.0186,13.5378))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 6) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 6 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_DOSTAVLJAC;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao dostavljac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/uzmikutiju /utovari /istovari");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1811.3263,-2066.6699,13.5541))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 7) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 7 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KAMIONDZIJA;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao kamiondzija!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/tura /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1892.8370,-2328.5259,13.5469))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 7) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 7 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_PILOT;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao pilot!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/let");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1083.2322,-1226.7747,15.8203))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 8) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 8 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_ELEKTRICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao elektricar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/kvar /oprema");
}
}
69

Citat: [UG]C++ poslato Mart 15, 2014, 21:24:07 POSLE PODNE
if(PRESSED(KEY_YES))
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1752.8291,-1894.0505,13.5573))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 1 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_BUSVOZAC;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao bus vozac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/linija /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1961.1292,-1244.8138,19.9714))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 1 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KOSACTRAVE;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao kosac trave!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/kositravu /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1791.7041,-1303.4011,13.5310))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 2 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_MEHANICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao mehanicar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"CTRL da zakacite/otkacite vozilo | /popravi | /napuni");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 986.7067,-1251.8522,16.9844))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 2 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_POSTAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao postar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/posta /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1569.8850,-1552.9240,13.5536))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 3 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KOMUNALAC;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao komunalac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/komunalno /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1882.0570,-1596.7355,13.5595))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 3 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_GRADJEVINAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao gradjevinar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/malter /poravnaj /prekiniposao");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1145.5222,-1294.5692,13.6356))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 4 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_BOLNICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao bolnicar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/izleci /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 940.5929,-1085.7225,24.2962))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 4 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_GROBAR;
    PlayerInfo[playerid][pPosaoUgovor] = 3;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao grobar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/grobar /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 2351.9797,-1170.0458,28.0445))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 5 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_DZEPAROS;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao dzeparos!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/ukradi");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, -38.5563,56.3204,3.1172))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 5 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_FARMER;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao farmer!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/mlijeko /oranje /vrsenje");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1743.0222,-1943.9714,13.5683))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 6) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 6 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_MASINOVODJA;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao masinovodja!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/voz");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1628.9937,-1848.0186,13.5378))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 6) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 6 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_DOSTAVLJAC;
    PlayerInfo[playerid][pPosaoUgovor] = 4;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao dostavljac!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/uzmikutiju /utovari /istovari");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1811.3263,-2066.6699,13.5541))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 7) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 7 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_KAMIONDZIJA;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao kamiondzija!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/tura /oprema");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1892.8370,-2328.5259,13.5469))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 7) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 7 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_PILOT;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao pilot!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/let");
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1083.2322,-1226.7747,15.8203))
{
        if(PlayerInfo[playerid][pPosao] != 0) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Vec imas posao moras prvo dati otkaz (/otkaz)!");
    if(PlayerInfo[playerid][pLevel] < 8) return SCM(playerid, -1, ""CRVENA"[SERVER] "SIVA"Moras biti level 8 da bi mogao raditi taj posao!");
    PlayerInfo[playerid][pPosao] = POSAO_ELEKTRICAR;
    PlayerInfo[playerid][pPosaoUgovor] = 5;
    SCM(playerid, -1, ""HZELENA"[SERVER] "SIVA"Uspjesno ste se zaposlili kao elektricar!");
    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/kvar /oprema");
}
}


napravio sam ranije hvala :) zab sam napisat al hvala :)
TUTORIALI :

Big Respect: " C++ "  (Majke mi nepamtim boljeg moderatora pawno sekcije, dada Blaeks je nekad bio :P)