(pomoc) IC Chat

Započeo William Johnson, Avgust 22, 2011, 19:16:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Noxicus
Detaljan opis problema: Ic chat mi njesta nevalja a nisam uopce nis diro :S
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):


Jesi probao uci na neki drugi server ?  ???
Daj mi komandu /l
trazi: "CMD:l"



www.ekvador-samp.in.rs

Trazim pomocnog skriptera i mappere !!! sve na Ekvador forumu ;)

BIGG RESPECT: System32 â–º jednostavno car, nema mu ravnog, rado pomaze, sve zna.... jednostavno car, nekuzim kako je tako pametan, ali drago mi je da je i da mi pomaze, HVALA ! ;)

Citat: Gospodin poslato Avgust 30, 2011, 12:24:24 POSLE PODNE
Nema veze sto ima hiljadu takvih stvari bitno je da se ljudi trude !!!
Točnoooooo, razmislite malo o ovome ;)

evo :D

CMD:l(playerid, params[])
{
new sendername[MAX_PLAYER_NAME];
new idx;
new string[128];
    if(IsPlayerConnected(playerid))
    {
  if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), " {FFFF80}Omega| {FF4444}Ne mozes pricati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo[playerid][pMuteTime], (PlayerInfo[playerid][pMuteTime]/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "   Nisi se logirao! !");
            return 1;
        }
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(params);
while ((idx < length) && (params[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = params[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} (/l)ocal [local chat]");
return 1;
}
new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
for(new b = 0; b < sizeof brojevi; b++)
{
new tekst = strlen(result);
for(new i = 0; i<tekst; i++)
{
if(result[i] == brojevi[b])
result[i] = '*' ;
}
}
format(string, sizeof(string), "%s {61B0D8}kaze: %s", sendername, result);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}

daj onplayertext ne to...
Vratio sam se ponovo ocekjute novi server...

public OnPlayerText(playerid, text[])
{
new giver[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new string[128];
if (gPlayerLogged[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "{FFFF80} Omega| {FF4444}Nisi se logirao!");
return 0;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), " {FFFF80}Omega| {FF4444}Ne mozes pricati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo[playerid][pMuteTime], (PlayerInfo[playerid][pMuteTime]/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 0;
}

if(AdvertisementCheck(text) && !IsPlayerAdmin(playerid))
{
format( string, sizeof( string ), "{FFFF80} Omega| {FF4444}Ne reklamiraj! Mozes dobiti ban!");
SCM( playerid, 0xFF4444FF, string);
return 0;
}
if(anty(text))
{
format( string, sizeof( string ), "{FFFF80} Omega| {FF4444}Ne reklamiraj! Mozes dobiti ban!");
SCM( playerid, 0xFF4444FF, string);
return 0;
}


evo neznam dali je ovo sto sam dao to sto trebas !


public OnPlayerText(playerid, text[])
{
new giver[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new string[128];
if (gPlayerLogged[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "{FFFF80} Omega| {FF4444}Nisi se logirao!");
return 0;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), " {FFFF80}Omega| {FF4444}Ne mozes pricati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo[playerid][pMuteTime], (PlayerInfo[playerid][pMuteTime]/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 0;
}

if(AdvertisementCheck(text) && !IsPlayerAdmin(playerid))
{
format( string, sizeof( string ), "{FFFF80} Omega| {FF4444}Ne reklamiraj! Mozes dobiti ban!");
SCM( playerid, 0xFF4444FF, string);
return 0;
}
if(anty(text))
{
format( string, sizeof( string ), "{FFFF80} Omega| {FF4444}Ne reklamiraj! Mozes dobiti ban!");
SCM( playerid, 0xFF4444FF, string);
return 0;
}

if(RegistrationStep[playerid] > 0)
{
    if(RegistrationStep[playerid] == 1)
    {
        ShowPlayerDialog(playerid, SEXMENU, DIALOG_STYLE_LIST, "Da li si musko ili zensko?","Musko\nZensko", "Odaberi", "Ponisti");
return 0;
}
else if(RegistrationStep[playerid] == 2)
    {
        new year, month,day;
getdate(year, month, day);
        new DateInfo[3][20];
split(text, DateInfo, '/');
if(year - strval(DateInfo[2]) > 100 || strval(DateInfo[2]) < 1 || strval(DateInfo[2]) >= year)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
    return 0;
}
new check = year - strval(DateInfo[2]);
if(check == year)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
    return 0;
}
if(strval(DateInfo[1]) > month)
{
    check -= 1;
}
else if(strval(DateInfo[1]) == month && strval(DateInfo[0]) > day)
{
    check -= 1;
}
PlayerInfo[playerid][pAge] = check;
format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
RegistrationStep[playerid] = 3;
SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Origin? (Type in: USA, Europe or Asia)");
return 0;
    }
    else if(RegistrationStep[playerid] == 3)
    {
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerVirtualWorld(playerid, 5000);
SetPlayerPos(playerid, 557.7147,-1385.4281,92.9177); SetPlayerFacingAngle(playerid, 149.1031);
SetPlayerCameraPos(playerid, 557.7147,-1385.4281,92.9177); SetPlayerCameraLookAt(playerid, 517.0809,-1446.1476,73.4533);
        ShowPlayerDialog(playerid, PORIJEKLOMENU, DIALOG_STYLE_LIST, "Odakle ste?","Bosna\nSrbija\nHrvatska\nCrna Gora", "Odaberi", "Ponisti");
return 0;
    }
return 0;
}
if(MarriageCeremoney[playerid] > 0)
{
    new idx;
    temp = strtok(text, idx);
    if ((strcmp("yes", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("yes")))
{
    if(GotProposedBy[playerid] < 999)
    {
    if(IsPlayerConnected(GotProposedBy[playerid]))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "Priest: %s do you take %s as your lovely Wife? (type 'yes', anything else will reject the Marriage).", giveplayer,sendername);
SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
MarriageCeremoney[GotProposedBy[playerid]] = 1;
MarriageCeremoney[playerid] = 0;
GotProposedBy[playerid] = 999;
    return 1;
    }
    else
    {
        MarriageCeremoney[playerid] = 0;
        GotProposedBy[playerid] = 999;
        return 0;
    }
}
else if(ProposedTo[playerid] < 999)
{
    if(IsPlayerConnected(ProposedTo[playerid]))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
{
format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Bride.", sendername, giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Groom.", giveplayer, sendername);
SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
format(string, sizeof(string), "Marriage News: We have a new lovely couple, %s & %s have been married.", sendername, giveplayer);
OOCNews(COLOR_WHITE, string);
}
else if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 1)
{
    format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Bride.", sendername, giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Groom.", giveplayer, sendername);
SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
format(string, sizeof(string), "Marriage News: We have a new Gay couple, %s & %s have been married.", sendername, giveplayer);
OOCNews(COLOR_WHITE, string);
}
else if(PlayerInfo[playerid][pSex] == 2 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
{
    format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Bride.", sendername, giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Groom.", giveplayer, sendername);
SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
format(string, sizeof(string), "Marriage News: We have a new Lesbian couple, %s & %s have been married.", sendername, giveplayer);
OOCNews(COLOR_WHITE, string);
}
//MarriageCeremoney[ProposedTo[playerid]] = 1;
MarriageCeremoney[ProposedTo[playerid]] = 0;
MarriageCeremoney[playerid] = 0;
format(string, sizeof(string), "%s", sendername);
strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s", giveplayer);
strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
GivePlayerCash(playerid, - 100000);
PlayerInfo[playerid][pMarried] = 1;
PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
PlayerInfo[ProposedTo[playerid]][pPhousekey] = PlayerInfo[playerid][pPhousekey];
PlayerInfo[ProposedTo[playerid]][pPbiskey] = PlayerInfo[playerid][pPbiskey];
ProposedTo[playerid] = 999;
MarriageCeremoney[playerid] = 0;
    return 1;
    }
    else
    {
        MarriageCeremoney[playerid] = 0;
        ProposedTo[playerid] = 999;
        return 0;
    }
}
}
else
{
    if(GotProposedBy[playerid] < 999)
    {
if(IsPlayerConnected(GotProposedBy[playerid]))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
    SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string);
    return 0;
    }
    else
    {
        MarriageCeremoney[playerid] = 0;
        GotProposedBy[playerid] = 999;
        return 0;
    }
    }

    else if(ProposedTo[playerid] < 999)
{
    if(IsPlayerConnected(ProposedTo[playerid]))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
    SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string);
    return 0;
    }
    else
    {
        MarriageCeremoney[playerid] = 0;
        ProposedTo[playerid] = 999;
        return 0;
    }
}
}
    return 0;
}

if(ConnectedToPC[playerid] == 255)
{
new idx;
    temp = strtok(text, idx);
    if ((strcmp("Contracts", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("Contracts")))
{
    if(PlayerInfo[playerid][pRank] < 4)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Samo hitman rank 4+ moze davati mete !");
        return 0;
    }
    SearchingHit(playerid);
return 0;
}
else if ((strcmp("News", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("News")))
{
    new x_nr[128];
x_nr = strtok(text, idx);

if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Hitman Agencija Vijesti __________________|");
SendClientMessage(playerid, COLOR_WHITE, "{168BFF}INFO: {959561} News [broj] ili News delete [broj] ili News delete all");
format(string, sizeof(string), "1: %s :: Hitman: %s", News[hAdd1], News[hContact1]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "2: %s :: Hitman: %s", News[hAdd2], News[hContact2]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "3: %s :: Hitman: %s", News[hAdd3], News[hContact3]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "4: %s :: Hitman: %s", News[hAdd4], News[hContact4]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "5: %s :: Hitman: %s", News[hAdd5], News[hContact5]);
SendClientMessage(playerid, COLOR_GREY, string);
SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
return 0;
}//lets start
if(strcmp(x_nr,"1",true) == 0)
{
    if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "   Vec postoji poruka, prvo obrisi!"); return 0; }
    if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Moras biti rank 3+ !"); return 0; }
    if(News[hTaken1] == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Tekst prekratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255);
News[hTaken1] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napisao si poruku na Vijesti Hitman Agencije.");
return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "  Prvo mjesto vec zauzeto !");
        return 0;
    }
}
else if(strcmp(x_nr,"2",true) == 0)
{
    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Vec postoji poruka, prvo obrisi!"); return 0; }
    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   Moras biti rank 3+ !");  return 0; }
    if(News[hTaken2] == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(strlen(text)-(strlen(x_nr)) < 9) { SCM(playerid, COLOR_GREY, "   Text prekratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255);
News[hTaken2] = 1; PlacedNews[playerid] = 1;
SCM(playerid, COLOR_LIGHTBLUE, "* Napisao si poruku na Vijesti Hitman Agencije.");
return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Drugo mjesto vec zauzeto !");
        return 0;
    }
}
else if(strcmp(x_nr,"3",true) == 0)
{
    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Vec postoji poruka, prvo obrisi!"); return 0; }
    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   Moras biti rank 3+ !"); return 0; }
    if(News[hTaken3] == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(strlen(text)-(strlen(x_nr)) < 9) { SCM(playerid, COLOR_GREY, "   Text prekratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255);
News[hTaken3] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napisao si poruku na Vijesti Hitman Agencije.");
return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Trece mjesto vec zauzeto !");
        return 0;
    }
}
else if(strcmp(x_nr,"4",true) == 0)
{
    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Vec postoji poruka, prvo obrisi!"); return 0; }
    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   Moras biti rank 3+ !"); return 0; }
    if(News[hTaken4] == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Text prekratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255);
News[hTaken4] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napisao si poruku na Vijesti Hitman Agencije.");
return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Cetvrto mjesto vec zauzeto !");
        return 0;
    }
}
else if(strcmp(x_nr,"5",true) == 0)
{
    if(PlacedNews[playerid] == 1) { SCM(playerid, COLOR_GREY, "   Vec postoji poruka, prvo obrisi!"); return 0; }
    if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, "   Moras biti rank 3+ !"); return 0; }
    if(News[hTaken5] == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Text prekratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255);
News[hTaken5] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napisao si poruku na Vijesti Hitman Agencije.");
return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Peto mjesto vec zauzeto !");
        return 0;
    }
}
else if(strcmp(x_nr,"delete",true) == 0)
{
    if(PlayerInfo[playerid][pRank] < 4)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Moras biti rank 4+ da bi mogao brisati poruke !");
        return 0;
    }
    new string1[MAX_PLAYER_NAME];
    new x_tel[128];
x_tel = strtok(text, idx);
if(!strlen(x_tel)) {
    SendClientMessage(playerid, COLOR_WHITE, "{168BFF}INFO: {959561} News delete [broj] ili News delete all.");
    return 0;
}
                    if(strcmp(x_tel,"1",true) == 0)
                    {
                        format(string, sizeof(string), "Nista"); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
News[hTaken1] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Obrisao si vijesti na liniji 1 sa Hitman Agencije.");
return 0;
                    }
                    else if(strcmp(x_tel,"2",true) == 0)
                    {
                        format(string, sizeof(string), "Nista"); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
News[hTaken2] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Obrisao si vijesti na liniji 2 sa Hitman Agencije.");
return 0;
                    }
                    else if(strcmp(x_tel,"3",true) == 0)
                    {
                        format(string, sizeof(string), "Nista"); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
News[hTaken3] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Obrisao si vijesti na liniji 3 sa Hitman Agencije.");
return 0;
                    }
                    else if(strcmp(x_tel,"4",true) == 0)
                    {
                        format(string, sizeof(string), "Nista"); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
News[hTaken4] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Obrisao si vijesti na liniji 4 sa Hitman Agencije.");
return 0;
                    }
                    else if(strcmp(x_tel,"5",true) == 0)
                    {
                        format(string, sizeof(string), "Nista"); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
News[hTaken5] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Obrisao si vijesti na liniji 5 sa Hitman Agencije.");
return 0;
                    }
                    else if(strcmp(x_tel,"all",true) == 0)
                    {
                        format(string, sizeof(string), "Nista"); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
News[hTaken1] = 0;
format(string, sizeof(string), "Nista"); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
News[hTaken2] = 0;
format(string, sizeof(string), "Nista"); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
News[hTaken3] = 0;
format(string, sizeof(string), "Nista"); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
News[hTaken4] = 0;
format(string, sizeof(string), "Nista"); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "Niko"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
News[hTaken5] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Obrisao si sve vijesti Hitman Agencije.");
return 0;
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_WHITE, "{168BFF}INFO: {959561} News delete [broj] ili News delete all.");
    return 0;
                    }
}
else { return 0; }
}
else if ((strcmp("Givehit", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("Givehit")))
{
    if(PlayerInfo[playerid][pRank] < 4)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Moras biti rank 4+ da bi mogao pripisati Hitmanu ucjenu !");
        return 0;
    }
    if(hitfound == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Trenutno nema dostupnih meta, koristi /portable za vise informacija !");
        return 0;
    }
    temp = strtok(text, idx);
    if(!strlen(temp))
{
SendClientMessage(playerid, COLOR_GRAD1, "{168BFF}INFO: {959561} Givehit {959561}[ID/DioImena] {838361}");
return 0;
}
//giveplayerid = strval(temp);
giveplayerid = ReturnUser(temp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[giveplayerid][pMember] != 8)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije clan Hitman Agencije !");
return 0;
    }
    if(GoChase[giveplayerid] < 999)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Taj Hitman vec ima pripisanu metu !");
return 0;
    }
    if(IsPlayerConnected(hitid))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(giveplayerid, giver, sizeof(giver));
        GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
        //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
    //SendClientMessage(playerid, COLOR_YELLOW, string);
        //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
    //SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "* Hitman %s je poslao Hitmana %s da ubije: %s(ID:%d) za $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    GoChase[giveplayerid] = hitid;
    GetChased[hitid] = giveplayerid;
    GotHit[hitid] = 1;
    hitid = 0;
    hitfound = 0;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Taj igrac je offline, koristi /portable za vise informacija i pomoci !");
        return 0;
    }
}
return 0;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije online ili nije Hitman !");
    return 0;
}
}
else if ((strcmp("Ranks", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("Ranks")))
{
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Rankovi Agencije __________________|");
    for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
    {
GetPlayerName(i, giveplayer, sizeof(giveplayer));
        format(string, sizeof(string), "* %s: Rank %d", giveplayer,PlayerInfo[i][pRank]);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
else if ((strcmp("Order", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("Order")))
{
   
    temp = strtok(text, idx);
    if ((strcmp("1", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("1")))
{
    if(PlayerInfo[playerid][pRank] < 1) { SendClientMessage(playerid, COLOR_GREY, "   Nemas dovoljno veliki rank (rank 1+) !"); return 0; }
    if(GetPlayerCash(playerid) > 4999)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Narucio si paket 1 ($5000),dobices uskoro svoju narudzbu.");
        OrderReady[playerid] = 1;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY,"   Ne mozes si to priustiti !");
        return 0;
    }
}
else if ((strcmp("2", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("2")))
{
    if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "   Nemas dovoljno veliki rank (rank 2+) !"); return 0; }
    if(GetPlayerCash(playerid) > 5999)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Narucio si paket 2 ($6000),dobices uskoro svoju narudzbu.");
        OrderReady[playerid] = 2;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY,"   Ne mozes si to priustiti !");
        return 0;
    }
}
else if ((strcmp("3", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("3")))
{
    if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "   Nemas dovoljno veliki rank (rank 2+) !"); return 0; }
    if(GetPlayerCash(playerid) > 5999)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Narucio si paket 3 ($6000),dobices uskoro svoju narudzbu.");
        OrderReady[playerid] = 3;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY,"   Ne mozes si to priustiti !");
        return 0;
    }
}
else if ((strcmp("4", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("4")))
{
    if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Nemas dovoljno veliki rank (rank 3+) !"); return 0; }
    if(GetPlayerCash(playerid) > 7999)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Narucio si paket 4 ($255),dobices uskoro svoju narudzbu.");
        OrderReady[playerid] = 4;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY,"   Ne mozes si to priustiti !");
        return 0;
    }
}
else if ((strcmp("5", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("5")))
{
    if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Nemas dovoljno veliki rank (rank 3+) !"); return 0; }
    if(GetPlayerCash(playerid) > 7999)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Narucio si paket 5 ($255),dobices uskoro svoju narudzbu.");
        OrderReady[playerid] = 5;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY,"   Ne mozes si to priustiti !");
        return 0;
    }
}
else if ((strcmp("6", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("6")))
{
    if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "   Nemas dovoljno veliki rank (rank 4+) !"); return 0; }
    if(GetPlayerCash(playerid) > 8499)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Narucio si paket 6 ($8500),dobices uskoro svoju narudzbu.");
        OrderReady[playerid] = 6;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY,"   Ne mozes si to priustiti !");
        return 0;
    }
}
else if ((strcmp("7", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("7")))
{
    if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "   Nemas dovoljno veliki rank (rank 4+) !"); return 0; }
    if(GetPlayerCash(playerid) > 8499)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Narucio si paket 7 ($8500),dobices uskoro svoju narudzbu.");
        OrderReady[playerid] = 7;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY,"   Ne mozes si to priustiti !");
        return 0;
    }
}
else
{
    SendClientMessage(playerid, COLOR_WHITE, "|__________________ Dostupni Paketi __________________|");
    if(PlayerInfo[playerid][pRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) ($5000 ) Rank 1 - 5: Knife, Desert Eagle, MP5, Shotgun"); }
    if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, M4, MP5, Shotgun"); }
    if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun"); }
    if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) ($255) Rank 3 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
    if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(5) ($255) Rank 3 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
    if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) ($8500) Rank 4 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
    if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(7) ($8500) Rank 4 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
    SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
    return 0;
}
}
else if ((strcmp("Logout", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("Logout")))
{
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Iskljucio si svoj laptop i iskljucio se iz Agencije.");
      ConnectedToPC[playerid] = 0;
    return 0;
}
else
{
    SendClientMessage(playerid, 0xFFFFFFFF, "|___ {555555}Hitman Agencija {FFFFFF}___|");
    SendClientMessage(playerid, 0x555555FF, "| - News");
    SendClientMessage(playerid, 0x555555FF, "| - Contracts");
    SendClientMessage(playerid, 0x555555FF, "| - Givehit");
    SendClientMessage(playerid, 0x555555FF, "| - Backup");
    SendClientMessage(playerid, 0x555555FF, "| - Order");
    SendClientMessage(playerid, 0x555555FF, "| - Ranks");
    SendClientMessage(playerid, 0x555555FF, "| - Logout");
    SendClientMessage(playerid, 0x555555FF, "|");
SendClientMessage(playerid, 0xFFFFFFFF, "|__________________|");
    return 0;
}
    return 0;
}
new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
for(new b = 0; b < sizeof brojevi; b++)
{
new tekst = strlen(text);
for(new i = 0; i<tekst; i++)
{
if(text[i] == brojevi[b])
text[i] = '*' ;
}
}
if(CallLawyer[playerid] == 111)
{
    new idx;
    temp = strtok(text, idx);
    if ((strcmp("da", temp, true, strlen(temp)) == 0) && (strlen(temp) == strlen("da")))
{
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "** %s je pritvoren i potreban mu je advokat. Idi do policijske stanice.", sendername);
    SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
    SendJobMessage(2, TEAM_AZTECAS_COLOR, "* Kada stignes, zamoli sluzbenika da  ti odobri pristup (/prihvati advokat).");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Poruka je poslana svim dostupnim advokatima, molimo sacekajte.");
    WantLawyer[playerid] = 0;
CallLawyer[playerid] = 0;
    return 0;
}


Nisam zno dokle je pa uzeo ovoliko hhh

Cijeli callback, ali cijeli daj..
Aequam memento rebus in arduis servare mentem.