Hello There, Guest! Login or Register


[Feature]getid ?
#21
so if i report a player with @report jam health hack and there are players like: james, jamal, jaman etc online, admin will have to spec these 3 separately to eventually catch the reported one?
#22
Fair point, we can't add any partial nickname input there. We will look into bringing back /getid!
#23
(01-07-2014, 11:50 AM)cake link Wrote: Fair point, we can't add any partial nickname input there. We will look into bringing back /getid!

Thank you!
#24
I've made a quick command which can be ran as a filterscript for this because its pissing me off.
Someone reported a cheater today "JAY NIKE_BUNO HAS HEALTH HACKS QUICCCCCCCK" and I had to look through the whole scoreboard.

Code:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
   if(!strcmp(cmdtext, "/getid", true, 6))
   {
      new
         foundNamesString[128];

      // Can't remember if this compiles in PAWN, might need to use format
      //   new params[] = cmdtext[7];
      new params[128];
      format(params, sizeof(params), "%s", cmdtext[7]);

      if(!(3 < strlen(params) < MAX_PLAYER_NAME)) {
         SendClientMessage(playerid, -1,"Use /getid [name]. Search length must be greater than 3.");
         return 1;
      }
     
      SendClientMessage(playerid, -1, "Results:");

      for(new i = 0; i < 200; i++) {
         if(!IsPlayerConnected(i) || IsPlayerNPC(i)) {
            continue;
         }
         new name[24];
         GetPlayerName(i,name,24);
         if(strfind(params, name, true) == -1) {
            continue;
         }
         format(foundNamesString, sizeof(foundNamesString), "%s (ID:%i)",name, i);
         SendClientMessage(playerid, -1, foundNamesString);
      }
      if(!strlen(foundNamesString)) {
         SendClientMessage(playerid, -1, "No match found.");
      }
      return 1;
   }
   return 0;
}

Can someone compile and upload to the main server and when logged into rcon type /rcon loadfs [nameoffile].
And thats enough developing from me for one year
#25
(01-11-2014, 02:44 PM)Jay link Wrote: I've made a quick command which can be ran as a filterscript for this because its pissing me off.
Someone reported a cheater today "JAY NIKE_BUNO HAS HEALTH HACKS QUICCCCCCCK" and I had to look through the whole scoreboard.

Code:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
   if(!strcmp(cmdtext, "/getid", true, 6))
   {
      new
         foundNamesString[128];

      // Can't remember if this compiles in PAWN, might need to use format
      //   new params[] = cmdtext[7];
      new params[128];
      format(params, sizeof(params), "%s", cmdtext[7]);

      if(!(3 < strlen(params) < MAX_PLAYER_NAME)) {
         SendClientMessage(playerid, -1,"Use /getid [name]. Search length must be greater than 3.");
         return 1;
      }
     
      SendClientMessage(playerid, -1, "Results:");

      for(new i = 0; i < 200; i++) {
         if(!IsPlayerConnected(i) || IsPlayerNPC(i)) {
            continue;
         }
         new name[24];
         GetPlayerName(i,name,24);
         if(strfind(params, name, true) == -1) {
            continue;
         }
         format(foundNamesString, sizeof(foundNamesString), "%s (ID:%i)",name, i);
         SendClientMessage(playerid, -1, foundNamesString);
      }
      if(!strlen(foundNamesString)) {
         SendClientMessage(playerid, -1, "No match found.");
      }
      return 1;
   }
   return 0;
}

Can someone compile and upload to the main server and when logged into rcon type /rcon loadfs [nameoffile].
And thats enough developing from me for one year

/getid has been implemented in the next version.
#26
No patience these days.uh
#27
So. There's no time lapse around when the next version will be pushed. It could be months.
#28
lol how is it hard-working to put a piece of code in the actual code and just restart the gamemode?
#29
(01-11-2014, 07:05 PM)Jay link Wrote: So. There's no time lapse around when the next version will be pushed. It could be months.
If you would be active around IRC now and then you'd notice we update once a week. 12.6 will be coming up this weekend.

(01-11-2014, 07:24 PM)Shark link Wrote: lol how is it hard-working to put a piece of code in the actual code and just restart the gamemode?
How hard is it to have patience
#30
surely harder than spending 2 mins doing what I mentioned  :roll: