Korisne skripte i kodovi

Započeo matejdz, Maj 05, 2009, 12:15:21 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 5 gostiju pregledaju ovu temu.

tnx svima koj su stavili komande

dosta su pomogle :)

matejdz

ZA TEBE NODY NISAM MISLIO DA SI TOLIKI KRETEN DA NEZNAS KORISTITI JEBENI KOD ##################

Svaki post koji nije u KODU ######## BRIÅ EM

Correlli

Želim napomenuti još jednom da će od sad naprijed svaki dvojni post biti izbrisan bez ikakvog upozorenja, a ako se bude to ponavljalo onda će poster biti kažnjen.

Pozdrav,
  Correlli
Poslednja Izmena: Avgust 31, 2009, 21:57:46 POSLE PODNE od Don Correlli

//----------------------------------------/clanovi---------------------------
if ((strcmp(cmdtext, "/clanovi", true)==0)||(strcmp(cmdtext,"/members",true)==0))
   {
         if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ PD clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ FBI clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 2||PlayerInfo[i][pLeader] == 2)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ S.W.A.T. clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 3||PlayerInfo[i][pLeader] == 3)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ MD clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 4||PlayerInfo[i][pLeader] == 4)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ LCN clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 5||PlayerInfo[i][pLeader] == 5)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Yakuza clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 6||PlayerInfo[i][pLeader] == 6)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Hitman clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 9||PlayerInfo[playerid][pLeader] == 9)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ News clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 9||PlayerInfo[i][pLeader] == 9)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Taxi clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 10||PlayerInfo[i][pLeader] == 10)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Licenser clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 11||PlayerInfo[i][pLeader] == 11)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }



Imam 26 erora,Player to point is not......djuro mi rekao zagrade ja nevidim koje nisu zatvorene??

Trawis

evo;ako ti nece valjati onda nesto kod tebe drugo ne valja kod mene je compilao(ali je falila jedna zagrada pri kraju ;) )
//----------------------------------------/clanovi---------------------------
if ((strcmp(cmdtext, "/clanovi", true)==0)||(strcmp(cmdtext,"/members",true)==0))
   {
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ PD clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ FBI clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 2||PlayerInfo[i][pLeader] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ S.W.A.T. clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 3||PlayerInfo[i][pLeader] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ MD clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 4||PlayerInfo[i][pLeader] == 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ LCN clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 5||PlayerInfo[i][pLeader] == 5)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ Yakuza clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 6||PlayerInfo[i][pLeader] == 6)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ Hitman clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 9||PlayerInfo[playerid][pLeader] == 9)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ News clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 9||PlayerInfo[i][pLeader] == 9)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ Taxi clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 10||PlayerInfo[i][pLeader] == 10)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}
else if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GOLD, "____________ Licenser clanovi online ____________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 11||PlayerInfo[i][pLeader] == 11)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}
return 1;
}//ova je falila  :)
}
Poslednja Izmena: Avgust 31, 2009, 22:33:45 POSLE PODNE od [EF]Trawis


//---------------------------------------------[clanovi]----------------------------------------------

if ((strcmp(cmdtext, "/clanovi", true)==0)||(strcmp(cmdtext,"/members",true)==0))
    {
          if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
          {
          if(IsPlayerConnected(playerid))
      {
  SendClientMessage(playerid, COLOR_LIGHTBLUE, "____________ PD clanovi online ___________");
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  if(IsPlayerConnected(i))
  {
      if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
      {
  GetPlayerName(i, sendername, sizeof(sendername));
  format(string, 256, "    - %s", sendername);
  SendClientMessage(playerid, COLOR_BLACK, string);
  }
  }
  }
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________");
  }
  return 1;
          }
          else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
          {
          if(IsPlayerConnected(playerid))
      {
  SendClientMessage(playerid, COLOR_LIGHTBLUE, "____________ FBI clanovi online ___________");
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  if(IsPlayerConnected(i))
  {
      if(PlayerInfo[i][pMember] == 2||PlayerInfo[i][pLeader] == 2)
      {
  GetPlayerName(i, sendername, sizeof(sendername));
  format(string, 256, "    - %s", sendername);
  SendClientMessage(playerid, COLOR_BLUE, string);
  }
  }
  }
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________");
  }
  return 1;
          }
          else if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
          {
          if(IsPlayerConnected(playerid))
      {
  SendClientMessage(playerid, COLOR_LIGHTBLUE, "____________ SWAT clanovi online __________");
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  if(IsPlayerConnected(i))
  {
      if(PlayerInfo[i][pMember] == 3||PlayerInfo[i][pLeader] == 3)
      {
  GetPlayerName(i, sendername, sizeof(sendername));
  format(string, 256, "    - %s", sendername);
  SendClientMessage(playerid, COLOR_GREEN, string);
  }
  }
  }
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "_________________________________________");
  }
  }
return 1;
}












kod mene ovako radi 100%
SampKucni

Citat: ҳ̸Ҳ̸ҳMiStErIoҳ̸Ҳ̸ҳ poslato Avgust 31, 2009, 21:59:34 POSLE PODNE
//----------------------------------------/clanovi---------------------------
if ((strcmp(cmdtext, "/clanovi", true)==0)||(strcmp(cmdtext,"/members",true)==0))
   {
         if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ PD clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ FBI clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 2||PlayerInfo[i][pLeader] == 2)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ S.W.A.T. clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 3||PlayerInfo[i][pLeader] == 3)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ MD clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 4||PlayerInfo[i][pLeader] == 4)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ LCN clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 5||PlayerInfo[i][pLeader] == 5)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Yakuza clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 6||PlayerInfo[i][pLeader] == 6)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Hitman clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 9||PlayerInfo[playerid][pLeader] == 9)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ News clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 9||PlayerInfo[i][pLeader] == 9)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Taxi clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 10||PlayerInfo[i][pLeader] == 10)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11)
         {
         if(IsPlayerConnected(playerid))
     {
 SendClientMessage(playerid, COLOR_GOLD, "____________ Licenser clanovi online ____________");
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 if(IsPlayerConnected(i))
 {
     if(PlayerInfo[i][pMember] == 11||PlayerInfo[i][pLeader] == 11)
     {
 GetPlayerName(i, sendername, sizeof(sendername));
 format(string, 256, "    - %s", sendername);
 SendClientMessage(playerid, COLOR_IVORY, string);
 }
 }
 }
   SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }



Imam 26 erora,Player to point is not......djuro mi rekao zagrade ja nevidim koje nisu zatvorene??

  SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
 }
 return 1;
         }
}


to stavi na kraju zadnjeg clana i radit ce ;)
Poslednja Izmena: Avgust 31, 2009, 22:41:56 POSLE PODNE od Johny


Svi koji igraju CS-a neka nam se pridruze (:

Napravio sam komandu sad imam samo 4 erora  ???

C:\Documents and Settings\Mateo\My Documents\Server i forum\RPArena(Real server)\gamemodes\gf.pwn(7010) : warning 217: loose indentation
C:\Documents and Settings\Mateo\My Documents\Server i forum\RPArena(Real server)\gamemodes\gf.pwn(8698) : error 001: expected token: ",", but found "-string-"
C:\Documents and Settings\Mateo\My Documents\Server i forum\RPArena(Real server)\gamemodes\gf.pwn(8698) : warning 215: expression has no effect
C:\Documents and Settings\Mateo\My Documents\Server i forum\RPArena(Real server)\gamemodes\gf.pwn(8698) : warning 215: expression has no effect
C:\Documents and Settings\Mateo\My Documents\Server i forum\RPArena(Real server)\gamemodes\gf.pwn(8698) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Mateo\My Documents\Server i forum\RPArena(Real server)\gamemodes\gf.pwn(8698) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mateo\My Documents\Server i forum\RPArena(Real server)\gamemodes\gf.pwn(8698) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



Evo vam i taj red 8698
if ((strcmp(cmdtext, "/clanovi", true)==0)||(strcmp(cmdtext,"/members",true)==0))
    {
          if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
          {
          if(IsPlayerConnected(playerid))
     {
SendClientMessage(playerid, COLOR_GOLD, "____________ FBI clanovi online ____________");-----to je taj 8698  red!
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
     if(PlayerInfo[i][pMember] == 2||PlayerInfo[i][pLeader] == 2)
     {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "    - %s", sendername);
SendClientMessage(playerid, COLOR_IVORY, string);
}
}
}
  SendClientMessage(playerid, COLOR_GOLD, "__________________________________________");
}

omg sta nemos vitid broj retka di ti je error i tamo nades sto nevalja ljepo vidis kakav je error i samo ispravis

jbt napisaao sam ti broj retka meni se sve cini ok..neznam sta mu je ::)

matejdz

//----------------------------------Online------------------------------------
if(strcmp(cmd, "/online", true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "*** ORGANIZACIJE *** /pdonline /fbionline /swatonline /mdonline");
SendClientMessage(playerid, COLOR_GRAD1, "*** ORGANIZACIJE *** /lcnonline /yonline /honline /cnnonline");
SendClientMessage(playerid, COLOR_GRAD2, "*** ORGANIZACIJE *** /taxionline /licenserionline");
SendClientMessage(playerid, COLOR_GRAD2, "*** OSTALO *** /gradonacelnik /leaderi /admini/gamemasteri");
}


//----------------------------------ADMINS------------------------------------
if (strcmp(cmd, "/admini", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "Admini Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pAdmin] == 1)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Admin Level %d: %s", PlayerInfo[i][pAdmin], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
//----------------------------------GAMEMASTERS------------------------------------
if (strcmp(cmd, "/gamemasteri", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "GameMasteri Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pGameMaster] == 1)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "GameMaster Level %d: %s", PlayerInfo[i][pGameMaster], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
//----------------------------------MAYOR------------------------------------
if (strcmp(cmd, "/gradonacelnik", true) == 0)
{
if(IsPlayerConnected(playerid))
    {
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pMember] == 7 || PlayerInfo[i][pLeader] == 7)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Gradonacelnik: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
//----------------------------------LEADERS------------------------------------
if (strcmp(cmd, "/leaderi", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "Leaderi Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pLeader] == 1)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "PD: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
                else if(PlayerInfo[i][pLeader] == 2)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "FBI: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
                else if(PlayerInfo[i][pLeader] == 3)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "S.W.A.T: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
                else if(PlayerInfo[i][pLeader] == 4)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "MD: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
        else if(PlayerInfo[i][pLeader] == 5)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "LCN: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
        else if(PlayerInfo[i][pLeader] == 6)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Yakuza: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
                    else if(PlayerInfo[i][pLeader] == 8)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Hitman: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
            else if(PlayerInfo[i][pLeader] == 9)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "CNN: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
            else if(PlayerInfo[i][pLeader] == 10)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Taxi: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
            else if(PlayerInfo[i][pLeader] == 11)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Licenser: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}


Za sve organizacije piše ovako, npr.
  - PD Rank 6: Matej Džolan
  - PD Rank 4: Matej Džolan

if (strcmp(cmd, "/pdonline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "PD Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "PD Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/fbionline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "FBI Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "FBI Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/swatonline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "SWAT Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "SWAT Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/mdonline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "MD Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "MD Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/lcnonline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "LCN Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 5 || PlayerInfo[i][pLeader] == 5)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "SFR Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/yonline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "Y Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 6 || PlayerInfo[i][pLeader] == 6)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Y Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/honline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "H Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 8 || PlayerInfo[i][pLeader] == 8)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "H Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/newsonline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "News Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pLeader] == 9)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "News Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/taxionline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "Taxi Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 10 || PlayerInfo[i][pLeader] == 10)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Taxi Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
if (strcmp(cmd, "/licenserionline", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GRAD1, "Licenseri Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 11 || PlayerInfo[i][pLeader] == 11)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Licenser Rank %d: %s", PlayerInfo[i][pRank], sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}

evo jedne korisne komande :)
    if(strcmp(cmd, "/kill", true) == 0)
{
SetPlayerHealth(playerid,0.0);
SetPlayerToTeamColor(playerid);
return 1;
}



evo jos jedne:

if(strcmp(cmd, "/healall", true) == 0)
{
    GetPlayerName(playerid, sendername, sizeof(sendername));

    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] >= 2)
        {
        format(string, sizeof(string), "Admin %s je heal sve igrace na serveru.", sendername);
    SendClientMessageToAll(COLOR_RED, string);
            for(new i = 0; i < MAX_PLAYERS; i ++)
{
    if(IsPlayerConnected(i))
    {
    SetPlayerHealth(i, 100);
}
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, "Nisi Admin!");
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, "Nisi Logiran!");
}
return 1;
}


i evo jos jedna.. ova je dobra zato sto ako neko kuca /gps NekiBroj a ipak odluci da ne ide tu pa da bi mu nestao CP ne mora da ide na to mesto.. nego jednostavno ukuca /gpsoff :

if(strcmp(cmd, "/gpsoff", true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Iskljucili ste GPS");
}
return 1;
}

sta mi ba brisete post neka vidi raja da mi pojanse sta trebam
SampKucni

citiram moderatorov post
Citat: Don Correlli poslato Avgust 31, 2009, 21:56:46 POSLE PODNE
Želim napomenuti još jednom da će od sad naprijed svaki dvojni post biti izbrisan bez ikakvog upozorenja, a ako se bude to ponavljalo onda će poster biti kažnjen.

a ti si napravio DP tako da nemas na sta da se zalis

Stvarno ima dobrih kodova svaka cast momci, isprobao sm vecinu i stavrno su korisne.
Posto nisam bash pro u skriptanju zanima me dali neko zna-ima adminkomandu tipa /payall

da bezveze ne lijepim iz pawna kod, obicna komanda pay samo da ima funkciju placanja vise igraca istovremeno /payall 1000 ( izgledalo bi nekako ovako


"Pisi: /payall [playerid/Dio imena(id1,id2,id3..bla bla)] [suma]"); ??