"Trebam nešto" - tema

Započeo Correlli, Jul 30, 2010, 15:11:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pozdrav.

Treba mi,da Administrator level 1337 ( ok to mogu sam promijenit ) može MAKNUT lidera dok je lider offline




Treba mi,kad Administrator oce postavit nekom lidera,a ta organizacija kojoj on zeli postavit lidera ima vec 2 lidera da mu dode poruka: " Ta organizacija vec ima 2 lidera." i da on NE moze ga postavit... ( znam da je malo glu,po ,al eto :D )


Hvala i LP !!


Poslednja Izmena: Jul 21, 2011, 06:15:18 PRE PODNE od pHon

1. nije to tako lako kao sto vi zamisljate
2. daj komandu za davat lidera
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Citat: System32 poslato Jul 21, 2011, 08:29:40 PRE PODNE
1. nije to tako lako kao sto vi zamisljate
2. daj komandu za davat lidera

Nisam niti mislio da je lagano,zato i trazim :)

Eto ti /Makeleader

if(strcmp(cmd, "/makeleader", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /makeleader [playerid/PartOfName] [Number(1-15)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 16 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "   Ne idite ispod 0, ili iznad 15!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 4)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
            if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Taj igrac je u Faction / Family !");
                return 1;
            }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = level;
format(string, sizeof(string), "   Promovirani ste u Lidera Organizacije/Bande od Administratora %s", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "   Promovirali ste %s u broj Organizacije/Bande %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_ORANGE, string);
if(level == 0) { PlayerInfo[para1][pChar] = 0; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }
else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force
else if(level == 2) { PlayerInfo[para1][pChar] = 165; } //FBI/ATF
else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pChar] = 175; } //Surenos
else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //La Cosa Nostra
else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor
else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Cable News Network
else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
else if(level == 11) { PlayerInfo[para1][pChar] = 121; } //Corleone
else if(level == 12) { PlayerInfo[para1][pChar] = 217; } //Hells Angels
else if(level == 13) { PlayerInfo[para1][pChar] = 115; } //Ballas
else if(level == 14) { PlayerInfo[para1][pChar] = 271; } //GroveStreet Families

if(level == 0)
{
    gTeam[para1] = 3;
    PlayerInfo[para1][pTeam] = 3;
}
else if(level == 1 || level == 2 || level == 3)
{
    gTeam[para1] = 2;
    PlayerInfo[para1][pTeam] = 2;
}
else if(level == 4)
{
    gTeam[para1] = 1;
    PlayerInfo[para1][pTeam] = 1;
}
else
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
}

    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);

    if(level == 0)
    {
        PlayerInfo[para1][pRank] = 0;
    }
    else
    {
    PlayerInfo[para1][pRank] = 6;
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
}
return 1;
}

Poz treba mi, komanda /lociraj (broj moba) i onda se na mapi pojavi crveni marker sa trenutnim mjestom nekog igraca (to mi treba za pd/fbi) a kada igrac nema telefon da pise taj igrac nema telefon nemoguce locirati. Pa dali ima neko to u svojoj skripti pa da mi posalje na pm ili objavi ovdje ili mi moze reci kako da se napravi.

Citat: Narco_VK poslato Jul 20, 2011, 21:21:05 POSLE PODNE
Citat: Partybreaker poslato Jul 20, 2011, 14:12:43 POSLE PODNE
Citat: Partybreaker poslato Jul 19, 2011, 15:01:15 POSLE PODNE
Treba mi komanda givehit,znaci kada ukljucis /portable, givehit da das metu..

Nego imam problem,lider ne moze sam sebi dati metu ili neki clan lideru takodje ne moze dati..

Evo kod:

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, "INFO: Givehit [ID/DioImena]");
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;
}
}


Jel zna neko odgovor na moje pitanje? :)

Treba mi hitno,pa ako neko zna.. :)


probaj ovo moje meni radi na mom mode-u sad nzez kod tebe..
else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
{
    if(PlayerInfo[playerid][pRank] < 4)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Samo rank 4+ !");
        return 0;
    }
    if(hitfound == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Trenutno nema meta !");
        return 0;
    }
    tmp = strtok(text, idx);
    if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristite: Givehit [playerid/PartOfName]");
return 0;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8)
    {
    if(GoChase[giveplayerid] < 999)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Taj hitman je vec zauzet sa ogovorom !");
return 0;
    }
    if(IsPlayerConnected(hitid))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(giveplayerid, giver, sizeof(giver));
        GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Hitman %s, je stavio 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, "   Osoba koja treba da se ubije je trenutno offline uzmite ponovo ugovore !");
        return 0;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije hitman !");
return 0;
}
}
return 0;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj hitman nije online ili nije hitman !");
    return 0;
}
}

I dalje lider ne moze sebi dati metu,ili neko lideru.

Jel neko mozda zna ?


Server IP: 193.192.58.82:7782
Forum: www.balkan-underline.info


Citat: pHon poslato Jul 21, 2011, 04:53:05 PRE PODNE
Pozdrav.

Treba mi,da Administrator level 1337 ( ok to mogu sam promijenit ) može MAKNUT lidera dok je lider offline




Treba mi,kad Administrator oce postavit nekom lidera,a ta organizacija kojoj on zeli postavit lidera ima vec 2 lidera da mu dode poruka: " Ta organizacija vec ima 2 lidera." i da on NE moze ga postavit... ( znam da je malo glu,po ,al eto :D )


Hvala i LP !!



Eto  /Makeleader

if(strcmp(cmd, "/makeleader", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /makeleader [playerid/PartOfName] [Number(1-15)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 16 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "   Ne idite ispod 0, ili iznad 15!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 4)
{
   if(IsPlayerConnected(para1))
   {
       if(para1 != INVALID_PLAYER_ID)
       {
           if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Taj igrac je u Faction / Family !");
               return 1;
           }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = level;
format(string, sizeof(string), "   Promovirani ste u Lidera Organizacije/Bande od Administratora %s", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "   Promovirali ste %s u broj Organizacije/Bande %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_ORANGE, string);
if(level == 0) { PlayerInfo[para1][pChar] = 0; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }
else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force
else if(level == 2) { PlayerInfo[para1][pChar] = 165; } //FBI/ATF
else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pChar] = 175; } //Surenos
else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //La Cosa Nostra
else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor
else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Cable News Network
else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
else if(level == 11) { PlayerInfo[para1][pChar] = 121; } //Corleone
else if(level == 12) { PlayerInfo[para1][pChar] = 217; } //Hells Angels
else if(level == 13) { PlayerInfo[para1][pChar] = 115; } //Ballas
else if(level == 14) { PlayerInfo[para1][pChar] = 271; } //GroveStreet Families

if(level == 0)
{
   gTeam[para1] = 3;
    PlayerInfo[para1][pTeam] = 3;
}
else if(level == 1 || level == 2 || level == 3)
{
   gTeam[para1] = 2;
    PlayerInfo[para1][pTeam] = 2;
}
else if(level == 4)
{
   gTeam[para1] = 1;
   PlayerInfo[para1][pTeam] = 1;
}
else
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
}

   SetPlayerSkin(para1, PlayerInfo[para1][pChar]);

   if(level == 0)
   {
       PlayerInfo[para1][pRank] = 0;
   }
   else
   {
    PlayerInfo[para1][pRank] = 6;
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
}
return 1;
}



BUMP;zna li netko ovo? :/
Poslednja Izmena: Jul 22, 2011, 13:00:16 POSLE PODNE od pHon

Trebao bi komandu za ovo:
Kada se vozim, dodjem do odredene pozicije ... recimo checkpointa, i meni server zamjeni moj infernus, sa recimo NRGom

dali nesto ovako bi funkcioniralo




if(IsPlayerInRangeOfPoint(playerid, 7.0, 2074.2397, -2613.0933, 13.1140))
{
DestroyVehicle(playerid, 0);
CreateVehicle(520, 2074.2397, -2613.0933, 13.1140, 82.2873, 0, 1, 1);
PutPlayerInVehicle(playerid, vehicleid, 0);
}
return 0

Datum registracije:    Listopad 21, 2009, 15:56:43
|Rick Dunn| NaNx |Soldier |
|Maper | Web Developer [HTML+CSS] | C++ beginner |

Respect: Karike, Chris, ///Masic, Stormer, Walter, NeNo, Pacino, NaNek

Citat: [SA]Rick Dunn aka NaNx[NSG] poslato Jul 22, 2011, 19:38:43 POSLE PODNE
Trebao bi komandu za ovo:
Kada se vozim, dodjem do odredene pozicije ... recimo checkpointa, i meni server zamjeni moj infernus, sa recimo NRGom

dali nesto ovako bi funkcioniralo




if(IsPlayerInRangeOfPoint(playerid, 7.0, 2074.2397, -2613.0933, 13.1140))
{
DestroyVehicle(playerid, 0);
CreateVehicle(520, 2074.2397, -2613.0933, 13.1140, 82.2873, 0, 1, 1);
PutPlayerInVehicle(playerid, vehicleid, 0);
}
return 0



Evo kako bi ti funkcioniralo:

//------------------------Na vrh:
new Switch[MAX_PLAYERS];

if(IsPlayerInRangeOfPoint(playerid, 7.0, 2074.2397, -2613.0933, 13.1140))
{
RemovePlayerFromVehicle(GetPlayerVehicleID(playerid));
DestroyVehicle(playerid, GetPlayerVehicleID(playerid));
DestroyVehicle(playerid, Switch[playerid]);
Switch[playerid] = CreateVehicle(520, 2074.2397, -2613.0933, 13.1140, 82.2873, 0, 1, 1);
PutPlayerInVehicle(playerid, Switch[playerid], 0);
}
Just one more time.

Sta mislite dali bi trebao checkpoint ili mozda pickup?
I dali se moze pickup pokupit iz auta ....


EDIT:U sta ide ovo if ....
U public?
Poslednja Izmena: Jul 22, 2011, 19:48:30 POSLE PODNE od [SA]Rick Dunn aka NaNx[NSG]
Datum registracije:    Listopad 21, 2009, 15:56:43
|Rick Dunn| NaNx |Soldier |
|Maper | Web Developer [HTML+CSS] | C++ beginner |

Respect: Karike, Chris, ///Masic, Stormer, Walter, NeNo, Pacino, NaNek

Mozes da napravis da pridje pickup-u i da svirne i da pokupi nagradu (http://wiki.sa-mp.com/wiki/OnPlayerPickUpPickup)

Citat: [SA]Rick Dunn aka NaNx[NSG] poslato Jul 22, 2011, 19:46:11 POSLE PODNE
Sta mislite dali bi trebao checkpoint ili mozda pickup?
I dali se moze pickup pokupit iz auta ....


EDIT:U sta ide ovo if ....
U public?

Pickup se moze pokupiti iz vozila:

http://wiki.sa-mp.com/wiki/PickupTypes

I ovo if stavi u neki timer... kao npr. OnPlayerUpdate...
Just one more time.

Aha.... a di bi islo to sto si mi dao


if(IsPlayerInRangeOfPoint(playerid, 7.0, 2074.2397, -2613.0933, 13.1140))
{
RemovePlayerFromVehicle(GetPlayerVehicleID(playerid));
DestroyVehicle(playerid, GetPlayerVehicleID(playerid));
DestroyVehicle(playerid, Switch[playerid]);
Switch[playerid] = CreateVehicle(520, 2074.2397, -2613.0933, 13.1140, 82.2873, 0, 1, 1);
PutPlayerInVehicle(playerid, Switch[playerid], 0);
}
Datum registracije:    Listopad 21, 2009, 15:56:43
|Rick Dunn| NaNx |Soldier |
|Maper | Web Developer [HTML+CSS] | C++ beginner |

Respect: Karike, Chris, ///Masic, Stormer, Walter, NeNo, Pacino, NaNek

Citat: [SA]Rick Dunn aka NaNx[NSG] poslato Jul 22, 2011, 19:53:13 POSLE PODNE
Aha.... a di bi islo to sto si mi dao


if(IsPlayerInRangeOfPoint(playerid, 7.0, 2074.2397, -2613.0933, 13.1140))
{
RemovePlayerFromVehicle(GetPlayerVehicleID(playerid));
DestroyVehicle(playerid, GetPlayerVehicleID(playerid));
DestroyVehicle(playerid, Switch[playerid]);
Switch[playerid] = CreateVehicle(520, 2074.2397, -2613.0933, 13.1140, 82.2873, 0, 1, 1);
PutPlayerInVehicle(playerid, Switch[playerid], 0);
}


Nisam testirao, ali mislim da bi islo...
Just one more time.

Citat: Partybreaker poslato Jul 21, 2011, 17:12:40 POSLE PODNE
Citat: Narco_VK poslato Jul 20, 2011, 21:21:05 POSLE PODNE
Citat: Partybreaker poslato Jul 20, 2011, 14:12:43 POSLE PODNE
Citat: Partybreaker poslato Jul 19, 2011, 15:01:15 POSLE PODNE
Treba mi komanda givehit,znaci kada ukljucis /portable, givehit da das metu..

Nego imam problem,lider ne moze sam sebi dati metu ili neki clan lideru takodje ne moze dati..

Evo kod:

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, "INFO: Givehit [ID/DioImena]");
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;
}
}


Jel zna neko odgovor na moje pitanje? :)

Treba mi hitno,pa ako neko zna.. :)


probaj ovo moje meni radi na mom mode-u sad nzez kod tebe..
else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
{
   if(PlayerInfo[playerid][pRank] < 4)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Samo rank 4+ !");
       return 0;
   }
   if(hitfound == 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Trenutno nema meta !");
       return 0;
   }
   tmp = strtok(text, idx);
   if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristite: Givehit [playerid/PartOfName]");
return 0;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
   if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8)
   {
   if(GoChase[giveplayerid] < 999)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Taj hitman je vec zauzet sa ogovorom !");
return 0;
   }
   if(IsPlayerConnected(hitid))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(giveplayerid, giver, sizeof(giver));
        GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Hitman %s, je stavio 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, "   Osoba koja treba da se ubije je trenutno offline uzmite ponovo ugovore !");
        return 0;
    }
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije hitman !");
return 0;
}
}
return 0;
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Taj hitman nije online ili nije hitman !");
   return 0;
}
}

I dalje lider ne moze sebi dati metu,ili neko lideru.

Jel neko mozda zna ?




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, "INFO: Givehit [ID/DioImena]");
return 0;
}
//giveplayerid = strval(temp);
giveplayerid = ReturnUser(temp);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
   if(PlayerInfo[giveplayerid][pMember] != 8)
                                   if(PlayerInfo[giveplayerid][pLeader] !=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;
}
}



probaj ovako,a mozes  i sam u ono pMember stavit pLeader odvojis samo s '||' i dodas PlayerInfo itd.. a mozes i ovako kako sam ti sad napisao xd




-------------------------



Citat: pHon poslato Jul 21, 2011, 04:53:05 PRE PODNE
Pozdrav.

Treba mi,da Administrator level 1337 ( ok to mogu sam promijenit ) može MAKNUT lidera dok je lider offline




Treba mi,kad Administrator oce postavit nekom lidera,a ta organizacija kojoj on zeli postavit lidera ima vec 2 lidera da mu dode poruka: " Ta organizacija vec ima 2 lidera." i da on NE moze ga postavit... ( znam da je malo glu,po ,al eto :D )


Hvala i LP !!



Eto  /Makeleader

if(strcmp(cmd, "/makeleader", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /makeleader [playerid/PartOfName] [Number(1-15)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 16 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "   Ne idite ispod 0, ili iznad 15!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 4)
{
   if(IsPlayerConnected(para1))
   {
       if(para1 != INVALID_PLAYER_ID)
       {
           if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Taj igrac je u Faction / Family !");
               return 1;
           }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = level;
format(string, sizeof(string), "   Promovirani ste u Lidera Organizacije/Bande od Administratora %s", sendername);
SendClientMessage(para1, COLOR_ORANGE, string);
format(string, sizeof(string), "   Promovirali ste %s u broj Organizacije/Bande %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_ORANGE, string);
if(level == 0) { PlayerInfo[para1][pChar] = 0; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }
else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force
else if(level == 2) { PlayerInfo[para1][pChar] = 165; } //FBI/ATF
else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pChar] = 175; } //Surenos
else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //La Cosa Nostra
else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor
else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Cable News Network
else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
else if(level == 11) { PlayerInfo[para1][pChar] = 121; } //Corleone
else if(level == 12) { PlayerInfo[para1][pChar] = 217; } //Hells Angels
else if(level == 13) { PlayerInfo[para1][pChar] = 115; } //Ballas
else if(level == 14) { PlayerInfo[para1][pChar] = 271; } //GroveStreet Families

if(level == 0)
{
   gTeam[para1] = 3;
    PlayerInfo[para1][pTeam] = 3;
}
else if(level == 1 || level == 2 || level == 3)
{
   gTeam[para1] = 2;
    PlayerInfo[para1][pTeam] = 2;
}
else if(level == 4)
{
   gTeam[para1] = 1;
   PlayerInfo[para1][pTeam] = 1;
}
else
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
}

   SetPlayerSkin(para1, PlayerInfo[para1][pChar]);

   if(level == 0)
   {
       PlayerInfo[para1][pRank] = 0;
   }
   else
   {
    PlayerInfo[para1][pRank] = 6;
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
}
return 1;
}



BUMP;zna li netko ovo? :/
Poslednja Izmena: Jul 22, 2011, 21:13:13 POSLE PODNE od pHon

Treba mi neki Digitalni Speedo al da nije Para Speedo ni ti Lux Speedo i tak ti njih sve znam ovako nki digitalni speedo da ima za gorivo,koje autol voziš i koliko ideš........