/undercover or /uc
Moderators: Forum Moderators, Server Moderators
Forum rules
Suggestions is a moderated OOC forum.
Inflammatory bullshit, thread de-railing, or anything other than suggestions or constructive criticism may result in punitive action.
Suggestions is a moderated OOC forum.
Inflammatory bullshit, thread de-railing, or anything other than suggestions or constructive criticism may result in punitive action.
-
- Posts: 442.0
- Joined: November 28th, 2008, 7:31 pm
- Location: Mass. USA
/undercover or /uc
Just a LEO command for LSPD/FBI members (Detective and up).
Now, normally when you want to do undercover/unmarked work, you need to go off /duty. By doing this, you loose your armor, your guns, and your abilities to /su and taze.
I propose the addition of an /undercover command. This command would preserve the normal commands that an on-duty LEO could have (/su, tazer, etc) and give them perhaps 25% or 50% armor instead of the full armor while changing their name color so it's white.
Any suggestions and comments would be much appreciated.
Now, normally when you want to do undercover/unmarked work, you need to go off /duty. By doing this, you loose your armor, your guns, and your abilities to /su and taze.
I propose the addition of an /undercover command. This command would preserve the normal commands that an on-duty LEO could have (/su, tazer, etc) and give them perhaps 25% or 50% armor instead of the full armor while changing their name color so it's white.
Any suggestions and comments would be much appreciated.
Juke wrote:you can never have too many "Z"s or "X"s to show people how fzcxing xtremezy you are.
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
-
- Posts: 163.0
- Joined: November 4th, 2008, 3:59 pm
- Location: Adelaide, AU
Re: /undercover or /uc
Think a preloaded name change too when you use this?
Juke wrote: Pinoy Church Group-Founded by Joseph Macaibo, this gang which promised Phillipino RP served as a haven for thirteen year old poopsocking exploit masters.
-
- Posts: 405.0
- Joined: January 21st, 2008, 10:08 pm
- Location: USA
Re: /undercover or /uc
I'd say 50% armor, SDPistol, and /su powers only. This way you'll be encouraged to have backup when doing uc stuff.
Always remember the 3 B's of law enforcement:
1. Be professional
2. Be polite
3. Be ready to kill everyone you meet.
1. Be professional
2. Be polite
3. Be ready to kill everyone you meet.
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
Re: /undercover or /uc
Mmm, yeah. Undercover cops IRL don't do many things beside that.Keegan_Russo wrote:This way you'll be encouraged to have backup when doing uc stuff.
As for namechange, I don't really thing it would be so good. Too much space for abusing IMHO
John Pendergast
-
- Posts: 163.0
- Joined: November 4th, 2008, 3:59 pm
- Location: Adelaide, AU
Re: /undercover or /uc
So what you're saying medium-high ranks of the LSPD will use this for abuse?
Ha, most of our high ranking officers are pretty damn good and how they got up there proves they are not so much for abusive.
(The statement above does not count Gook as one for them )
Ha, most of our high ranking officers are pretty damn good and how they got up there proves they are not so much for abusive.
(The statement above does not count Gook as one for them )
Juke wrote: Pinoy Church Group-Founded by Joseph Macaibo, this gang which promised Phillipino RP served as a haven for thirteen year old poopsocking exploit masters.
-
- I just can't stop posting worthless shit!
- Posts: 275.0
- Joined: April 15th, 2009, 8:24 am
- Location: Sweden: In a room somewhere
Re: /undercover or /uc
I've though about that name thing, maybe when the C.I.D is on a special case, everyone who's apart of the C.I.D ( Detective Rank ) gets a special UC name...
Anyhow, it seems pretty cool
Anyhow, it seems pretty cool
very good grammer.[/quote]
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
Re: /undercover or /uc
Naturally, not. However I was part of just enough coding teams (even outside of SA-MP things) to realise that if something is too abusable, it gets abused.Casey_Calvert wrote:So what you're saying medium-high ranks of the LSPD will use this for abuse?
Want it non-abusible? Assign a (secret) name to everyone who could use this command, which is stored in the account file/record, and is easy to track.
John Pendergast
Re: /undercover or /uc
just get an admin to change your name
-
- Server Moderator
- Posts: 671.0
- Joined: April 21st, 2009, 7:24 am
- Game Name(s): Andrew_David
- Location: Fantasy World
Re: /undercover or /uc
Oh my god!vikki wrote:just get an admin to change your name
ps: i'm coding this right now!!! Good Idea!
29 minutes later... (i was eating!)
Code: Select all
//==============================================================================
new Skins[] = { 170, 186, 20, 240, 250, 25, 37, 46, 59, 60, 233, 93};
if(strcmp(cmd, "/undercover", true) == 0 || strcmp(cmd, "/uc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1)
{
{
if(OnDuty[playerid]==1)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50);
SetPlayerColor(playerid, COLOR_WHITE);
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid, Skins[random(sizeof(Skins))]);
GivePlayerWeapon(playerid, 31, 65000);
OnDuty[playerid] = 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You are not a Cop!");
}
}
return 1;
}
//==============================================================================
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
Re: /undercover or /uc
- GetPlayerName(playerid, sendername, sizeof(sendername)); will throw an error cause there's no variable sendername + player name isn't used in your code
- PlayerInfo[playerid][pMember] == 1 is pretty limited, cause there are leaders and probably the FBI wants to use it, too, so replace it with IsACop(playerid), this function is very likely to exist
- SetPlayerColor(playerid, COLOR_WHITE); won't work, because faction colors are reset pretty often, so the white name would go away in a rather short time
- GivePlayerWeapon(playerid, 31, 65000); -- M4 for undercover cops? Gosh.
Also, there has to be an undo command that restores the original state. (Dying isn't very good for obvious reasons)
John Pendergast
-
- Server Moderator
- Posts: 671.0
- Joined: April 21st, 2009, 7:24 am
- Game Name(s): Andrew_David
- Location: Fantasy World
Re: /undercover or /uc
...
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
Re: /undercover or /uc
Sorry, I've been very disputatious lately, didn't mean to offend you. Just wanted to point out the errors, maybe with wrong style.
You can't believe how much times I have said this in the past 48 hours.
You can't believe how much times I have said this in the past 48 hours.
John Pendergast
-
- Server Moderator
- Posts: 671.0
- Joined: April 21st, 2009, 7:24 am
- Game Name(s): Andrew_David
- Location: Fantasy World
Re: /undercover or /uc
Ok. no problem lets make a great command... you and me right?John_Pendergast wrote:Sorry, I've been very disputatious lately, didn't mean to offend you. Just wanted to point out the errors, maybe with wrong style.
You can't believe how much times I have said this in the past 48 hours.
i didnt add the change names cause i can have bugs and with the names and i can get fucked by the admins etc..
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
Re: /undercover or /uc
Namechanging code is pretty difficult as outsiders, mainly cause we (I?) don't know how are accounts stored exactly.
Instead of 50 armor, you could do random armor from 25-50 to make it more unrecogniseable. (I'm pretty sure people with just redo the command till they get 45+ so yeah)
Instead of 50 armor, you could do random armor from 25-50 to make it more unrecogniseable. (I'm pretty sure people with just redo the command till they get 45+ so yeah)
John Pendergast
-
- Server Moderator
- Posts: 671.0
- Joined: April 21st, 2009, 7:24 am
- Game Name(s): Andrew_David
- Location: Fantasy World
Re: /undercover or /uc
Ok. i'm coding editing it now... i will make the Armor Random and adding a timer for aviot armour exploit.
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
-
- Server Moderator
- Posts: 671.0
- Joined: April 21st, 2009, 7:24 am
- Game Name(s): Andrew_David
- Location: Fantasy World
Re: /undercover or /uc
http://pastebin.com/m67f22da0 There- fixed
Lol im the best i didnt add the Timer...
John do it please im busy with another stuff
Lol im the best i didnt add the Timer...
John do it please im busy with another stuff
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
Re: /undercover or /uc
OK, here's a shiny /undercover command with proper name coloring, armor, skins (and restoring original skins!), rank check whatever.
----------------------------------------------------------------------------
Variables to be declared: (set it to 0 in OnPlayerConnect, also note that while undercover it stores the cop skin ID)
SetPlayerToTeamColor modification for LSPD
The command itself:
http://pastebin.com/mc4953b1
Make sure you change the required rank to suit your needs, and the weapon/health/armor management to suit your anticheat code!
----------------------------------------------------------------------------
Variables to be declared: (set it to 0 in OnPlayerConnect, also note that while undercover it stores the cop skin ID)
Code: Select all
new UndercoverCop[MAX_PLAYERS];
Code: Select all
else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(OnDuty[playerid] && UndercoverCop[playerid] == 0) SetPlayerColor(playerid, COLOR_DBLUE);
else SetPlayerColor(playerid,COLOR_WHITE);
}
http://pastebin.com/mc4953b1
Make sure you change the required rank to suit your needs, and the weapon/health/armor management to suit your anticheat code!
John Pendergast
-
- Server Moderator
- Posts: 671.0
- Joined: April 21st, 2009, 7:24 am
- Game Name(s): Andrew_David
- Location: Fantasy World
Re: /undercover or /uc
you do it i gave you a pastebin with the command there :)
ps. great but do you use God Father Gm for do it? im using that for szr is it.
ps. great but do you use God Father Gm for do it? im using that for szr is it.
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
-
- Posts: 838.0
- Joined: September 29th, 2009, 4:03 am
Re: /undercover or /uc
But..... what is this udercover thing good for?
-
- Server Moderator
- Posts: 671.0
- Joined: April 21st, 2009, 7:24 am
- Game Name(s): Andrew_David
- Location: Fantasy World
Re: /undercover or /uc
it makes you undercover with powers for Taze and su. RP
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
-
- Posts: 838.0
- Joined: September 29th, 2009, 4:03 am
Re: /undercover or /uc
But....... what is THAT good for? Will you guys try to buy mats undercover and stuff and then arrest people or something like that?
Re: /undercover or /uc
Yeah, we could do a couple of stings using this command.
-
- Posts: 838.0
- Joined: September 29th, 2009, 4:03 am
Re: /undercover or /uc
You guys should do this against MagC only.
Edit: Or, you could use this against nonrp advertisements instead of /su
Edit: Or, you could use this against nonrp advertisements instead of /su
-
- Posts: 693.0
- Joined: March 28th, 2009, 11:50 pm
- Location: Hungary
Re: /undercover or /uc
I'd say my test GM is a GF-derivative, just as SZR is, but it's very far from the original GF.Andrew_David wrote:ps. great but do you use God Father Gm for do it? im using that for szr is it.
John Pendergast