Szerző Téma: Csak az a player lássa  (Megtekintve 460 alkalommal)

Csak az a player lássa
« Dátum: 2012. május 27. - 15:39:49 »
0 Show voters
Sziasztok.
Szeretném megkérdezni hogy itt ez a válasz rendszer és azt meg lehetne csinálni hogy csak az a player lássa amelyiknek válaszoltam?
Ha igen valaki áttudná irni?
[meg azt meg lehet hogy az adminok lássák hogy mit ir annak a playernek? pl. Devil112 válaszolt Devil112-nek. Válasz: ...
 

if(strcmp(cmd, \"/asayy\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(Admin(playerid, 1) || PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][orokas] >= 1)
        {
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /asayy [iD] [üzenet]\");
      return 1;
   }
   giveplayerid = ReturnUser(tmp);
      if(!strcmp(Reportja[giveplayerid], \"None\", true)) return SendClientMessage(playerid,COLOR_LIGHTRED,\"A kijelölt játékos nem írt reportot!\");//töröld ha bugos
   if (IsPlayerConnected(giveplayerid))
   {
       if(giveplayerid != INVALID_PLAYER_ID)
       {
         GetPlayerName(playerid, sendername, sizeof(sendername));
         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= \' \'))
         {
            idx++;
         }
         new offset = idx;
         new result[130];
         new adminuzi[128];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /asayy [iD] [üzenet]\");
            return 1;
         }
         new h,mi,s,y,m,d;
         getdate(y,m,d);
         gettime(h,mi,s);
         new atext[20];
         if(Admin(playerid, 6)) {atext = \"Super Admin\"; }
         if(Admin(playerid, 5)) {atext = \"Tulajdonos\"; }
         if(Admin(playerid, 4)) {atext = \"FõAdmin\"; }
         if(Admin(playerid, 3)) {atext = \"FõAdmin\"; }
         if(Admin(playerid, 2)) {atext = \"Admin\"; }
         if(Admin(playerid, 1)) {atext = \"Admin\"; }
         else if(PlayerInfo[playerid][pHelper] >= 1) {atext = \"Adminsegéd\"; }
         else if(PlayerInfo[playerid][orokas] >= 1) {atext = \"ÖrökAdminsegéd\"; }
         UzenetMindenkinek(0xFFDB26FF, \"%s jelentése: %s\", giveplayer, Reportja[giveplayerid]);
         format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s jelentése: %s\",y,m,d,h,mi,s,giveplayer, Reportja[giveplayerid]);
         LoOoG(stringx);
         if(strlen(result) < 65 && PlayerInfo[playerid][rejtozes] == 0)
          {
             format(adminuzi, sizeof(stringx), \"(( %s %s: %s ))\",atext, sendername, result);
            SendClientMessageToAll(COLOR_LIGHTRED,adminuzi);
            format(adminuzi,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] *(( %s %s: %s ))\",y,m,d,h,mi,s,atext,sendername,result);
            LoOoG(adminuzi);
            return 1;
         }
         else if(strlen(result) < 129 && strlen(result) > 64 && PlayerInfo[playerid][rejtozes] == 0)
         {
             new stringxxx[65];
            strmid(stringxxx, result, 65, strlen(result));
            strdel(result, 65, strlen(result));
            format(adminuzi, sizeof(stringx), \"*(( %s %s: %s ))\",atext, sendername, result);
            SendClientMessageToAll(COLOR_LIGHTRED,adminuzi);
            format(stringx, sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] *(( %s %s: %s )).\",y,m,d,h,mi,s, atext, sendername, result);
            LoOoG(stringx);
            format(adminuzi, sizeof(stringx), \"*(( %s %s: ...%s ))\",atext, sendername, stringxxx);
            SendClientMessageToAll(COLOR_LIGHTRED,adminuzi);
            format(stringx, sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] *(( %s %s: %s ))\",y,m,d,h,mi,s, atext, sendername, stringxxx);
            LoOoG(stringx);
            return 1;
         }
         else if(strlen(result) < 65 && PlayerInfo[playerid][rejtozes] == 1)
          {
             format(adminuzi, sizeof(stringx), \"*(( %s %s: %s... ))\",result);
            SendClientMessageToAll(COLOR_LIGHTRED,adminuzi);
            format(adminuzi,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] *(( %s %s: %s ))\",y,m,d,h,mi,s,atext,sendername,result);
            LoOoG(adminuzi);
            return 1;
         }
         else if(strlen(result) < 129 && strlen(result) > 64 && PlayerInfo[playerid][rejtozes] == 1)
         {
             new stringxxx[65];
            strmid(stringxxx, result, 65, strlen(result));
            strdel(result, 65, strlen(result));
            format(adminuzi, sizeof(stringx), \"*(( %s %s: %s ))\", result);
            SendClientMessageToAll(COLOR_LIGHTRED,adminuzi);
            format(stringx, sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] *(( %s %s: %s ))\",y,m,d,h,mi,s, atext, sendername, result);
            LoOoG(stringx);
            format(adminuzi, sizeof(stringx), \"*(( %s %s: %s ))\", stringxxx);
            SendClientMessageToAll(COLOR_LIGHTRED,adminuzi);
            format(adminuzi, sizeof(stringx), \"*(( %s %s: %s ))\", sendername,stringxxx);
            SendFAdminMessage(COLOR_LIGHTRED,adminuzi);
            format(stringx, sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] *(( %s %s: %s ))\",y,m,d,h,mi,s, atext, sendername, stringxxx);
            LoOoG(stringx);
            return 1;
         }
         /*format(string, sizeof(string), \"* %s %s: %s\",atext,sendername, (result));
                    strdel(Reportja[giveplayerid], 0, strlen(Reportja[giveplayerid]));
         SendClientMessageToAll(COLOR_GREEN, string);*/
         //itt volt a return 1
      }
   }
   else
   {
         format(string, sizeof(string), \"A játékos offline.\");
         SendClientMessage(playerid, COLOR_GRAD1, string);
   }
   } else SendClientMessage(playerid,COLOR_GRAD2,\"Nem vagy admin!\");
}
return 1;
}
[code]
« Utoljára szerkesztve: 2012. május 27. - 15:44:14 írta Benceee »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal