Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: [Black_Dayton] poslato Februar 23, 2013, 19:42:20 POSLE PODNE

Naslov: [Pomoc] DCMD-ZCMD
Poruka od: [Black_Dayton] poslato Februar 23, 2013, 19:42:20 POSLE PODNE
Skripta koju koristim: ZCMD-kom
Detaljan opis problema: Ovako kako se moze konvertat ili nekako izmjenuti iz dcmd u zcmd. Molim objasnjenje
Dio skripte: dcmd_ip(playerid,params[])
{
   if(AccInfo[playerid][Level] >= 1)
   {
       if(!strlen(params)) return
      SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ip [PlayerID]") &&
      SendClientMessage(playerid, orange, "Function: Will see Ip of specified player");
      new player1 = strval(params);
      new string[128];
      if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
      return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
      {
         SendCommandToAdmins(playerid,"Ip");
         new tmp3[50];
         GetPlayerIp(player1,tmp3,50);
         format(string,sizeof(string),"PlayerName: %s | IP: %s", pName(player1), tmp3);
         return SendClientMessage(playerid,yellow,string);
       }
      else return ErrorMessages(playerid, 2);
   }
   else return ErrorMessages(playerid, 1);
}

Znaci treba mi da ih convertam ili kako se to vec "zove" ili radi !
Naslov: Odg: [Pomoc] DCMD-ZCMD
Poruka od: Blaeks poslato Februar 23, 2013, 19:49:16 POSLE PODNE
CMD:ip(playerid,params[])
{
   if(AccInfo[playerid][Level] >= 1)
   {
       if(!strlen(params)) return
      SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ip [PlayerID]") &&
      SendClientMessage(playerid, orange, "Function: Will see Ip of specified player");
      new player1 = strval(params);
      new string[128];
      if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
      return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
      {
         SendCommandToAdmins(playerid,"Ip");
         new tmp3[50];
         GetPlayerIp(player1,tmp3,50);
         format(string,sizeof(string),"PlayerName: %s | IP: %s", pName(player1), tmp3);
         return SendClientMessage(playerid,yellow,string);
       }
      else return ErrorMessages(playerid, 2);
   }
   else return ErrorMessages(playerid, 1);
}
Naslov: Odg: [Pomoc] DCMD-ZCMD
Poruka od: [Black_Dayton] poslato Februar 23, 2013, 19:53:03 POSLE PODNE
aaaa tigre mozes mi objasniti kak osi to uradio ?
Naslov: Odg: [Pomoc] DCMD-ZCMD
Poruka od: Blaeks poslato Februar 23, 2013, 19:53:37 POSLE PODNE
a skontaj naziv komande kod tebe u kodu i kod mene u kodu i videces
Naslov: Odg: [Pomoc] DCMD-ZCMD
Poruka od: [Black_Dayton] poslato Februar 23, 2013, 20:03:20 POSLE PODNE
Skonda Pukni lock ! i Tnx ti  :D
Naslov: Odg: [Pomoc] DCMD-ZCMD
Poruka od: Blaeks poslato Februar 23, 2013, 20:04:27 POSLE PODNE
problem resen, lock