Las Venturas Playground
[Feature]getid ? - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: [Feature]getid ? (/thread-31297.html)

Pages: 1 2 3 4


Re: Where is /getid ? - [NB]Zaibatsu - 01-07-2014

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?



Re: Where is /getid ? - cake - 01-07-2014

Fair point, we can't add any partial nickname input there. We will look into bringing back /getid!


Re: Where is /getid ? - Maka - 01-07-2014

(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!


Re: Where is /getid ? - Jay - 01-11-2014

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


Re: Where is /getid ? - Beaner - 01-11-2014

(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.


Re: Where is /getid ? - striker - 01-11-2014

No patience these days.uh


Re: Where is /getid ? - Jay - 01-11-2014

So. There's no time lapse around when the next version will be pushed. It could be months.


Re: Where is /getid ? - Shark - 01-11-2014

lol how is it hard-working to put a piece of code in the actual code and just restart the gamemode?


Re: Where is /getid ? - cake - 01-11-2014

(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


Re: Where is /getid ? - Shark - 01-11-2014

surely harder than spending 2 mins doing what I mentioned  :roll: