Posts: 3,465
Threads: 137
Joined: Sep 2007
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?
|
Posts: 1,433
Threads: 73
Joined: Feb 2012
Fair point, we can't add any partial nickname input there. We will look into bringing back /getid!
|
Posts: 8,536
Threads: 70
Joined: Dec 2006
(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!
|
Posts: 6,609
Threads: 788
Joined: Dec 2006
01-11-2014, 02:44 PM
(This post was last modified: 01-11-2014, 02:47 PM by Jay)
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
|
Posts: 855
Threads: 67
Joined: May 2011
(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.
|
Posts: 2,981
Threads: 110
Joined: Jun 2008
No patience these days.uh
|
Posts: 6,609
Threads: 788
Joined: Dec 2006
So. There's no time lapse around when the next version will be pushed. It could be months.
|
Posts: 3,579
Threads: 122
Joined: Aug 2008
lol how is it hard-working to put a piece of code in the actual code and just restart the gamemode?
|
Posts: 1,433
Threads: 73
Joined: Feb 2012
01-11-2014, 08:08 PM
(This post was last modified: 01-11-2014, 08:10 PM by cake)
(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
|
Posts: 3,579
Threads: 122
Joined: Aug 2008
surely harder than spending 2 mins doing what I mentioned  oll:
|
|