/undercover or /uc

Place all new suggestions here, for easy viewing.

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.
Ed_Waldsmith
Posts: 442.0
Joined: November 28th, 2008, 7:31 pm
Location: Mass. USA

/undercover or /uc

Post by Ed_Waldsmith »

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.
Juke wrote:you can never have too many "Z"s or "X"s to show people how fzcxing xtremezy you are.
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

Good idea, just make sure you get a skinchange too.
John Pendergast
Casey_Calvert
Posts: 163.0
Joined: November 4th, 2008, 3:59 pm
Location: Adelaide, AU

Re: /undercover or /uc

Post by Casey_Calvert »

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

Image
Keegan_Russo
Posts: 405.0
Joined: January 21st, 2008, 10:08 pm
Location: USA

Re: /undercover or /uc

Post by Keegan_Russo »

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.
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

Keegan_Russo wrote:This way you'll be encouraged to have backup when doing uc stuff.
Mmm, yeah. Undercover cops IRL don't do many things beside that.

As for namechange, I don't really thing it would be so good. Too much space for abusing IMHO
John Pendergast
Casey_Calvert
Posts: 163.0
Joined: November 4th, 2008, 3:59 pm
Location: Adelaide, AU

Re: /undercover or /uc

Post by Casey_Calvert »

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 )
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.
Image

Image
WISE_SHITOWL
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

Post by WISE_SHITOWL »

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
very good grammer.[/quote]
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

Casey_Calvert wrote:So what you're saying medium-high ranks of the LSPD will use this for abuse?
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.

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
vikki
Posts: 752.0
Joined: September 17th, 2009, 5:58 pm

Re: /undercover or /uc

Post by vikki »

just get an admin to change your name
Andrew_David
Server Moderator
Server Moderator
Posts: 671.0
Joined: April 21st, 2009, 7:24 am
Game Name(s): Andrew_David
Location: Fantasy World

Re: /undercover or /uc

Post by Andrew_David »

vikki wrote:just get an admin to change your name
Oh my god!
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;
	}
//==============================================================================
pss: the pastebin didnt open! sorry :/
Image
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

  • 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.
If you want to make a non-resetting namecolor change, create a global array which shows if cop's undercover or not, and in SetPlayerToTeamColor() check if he/she is undercover and set the color accordingly.

Also, there has to be an undo command that restores the original state. (Dying isn't very good for obvious reasons)
John Pendergast
Andrew_David
Server Moderator
Server Moderator
Posts: 671.0
Joined: April 21st, 2009, 7:24 am
Game Name(s): Andrew_David
Location: Fantasy World

Re: /undercover or /uc

Post by Andrew_David »

...
Image
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

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.
John Pendergast
Andrew_David
Server Moderator
Server Moderator
Posts: 671.0
Joined: April 21st, 2009, 7:24 am
Game Name(s): Andrew_David
Location: Fantasy World

Re: /undercover or /uc

Post by Andrew_David »

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.
Ok. no problem lets make a great command... you and me right?
i didnt add the change names cause i can have bugs and with the names and i can get fucked by the admins etc..
Image
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

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)
John Pendergast
Andrew_David
Server Moderator
Server Moderator
Posts: 671.0
Joined: April 21st, 2009, 7:24 am
Game Name(s): Andrew_David
Location: Fantasy World

Re: /undercover or /uc

Post by Andrew_David »

Ok. i'm coding editing it now... i will make the Armor Random and adding a timer for aviot armour exploit.
Image
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
Andrew_David
Server Moderator
Server Moderator
Posts: 671.0
Joined: April 21st, 2009, 7:24 am
Game Name(s): Andrew_David
Location: Fantasy World

Re: /undercover or /uc

Post by Andrew_David »

http://pastebin.com/m67f22da0 There- fixed

Lol im the best i didnt add the Timer...
John do it please im busy with another stuff
Image
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

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)

Code: Select all

new UndercoverCop[MAX_PLAYERS];
SetPlayerToTeamColor modification for LSPD

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);
}
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!
John Pendergast
Andrew_David
Server Moderator
Server Moderator
Posts: 671.0
Joined: April 21st, 2009, 7:24 am
Game Name(s): Andrew_David
Location: Fantasy World

Re: /undercover or /uc

Post by Andrew_David »

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.
Image
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
BigAssGoat
Posts: 838.0
Joined: September 29th, 2009, 4:03 am

Re: /undercover or /uc

Post by BigAssGoat »

But..... what is this udercover thing good for?
Image
Andrew_David
Server Moderator
Server Moderator
Posts: 671.0
Joined: April 21st, 2009, 7:24 am
Game Name(s): Andrew_David
Location: Fantasy World

Re: /undercover or /uc

Post by Andrew_David »

it makes you undercover with powers for Taze and su. RP
Image
Infernus Club #1
[00:01:50] ** Newbie Donald_Hamburger: I hear you coding now, you think you can take people's jobs motherfucker? Huh?! **
BigAssGoat
Posts: 838.0
Joined: September 29th, 2009, 4:03 am

Re: /undercover or /uc

Post by BigAssGoat »

But....... what is THAT good for? Will you guys try to buy mats undercover and stuff and then arrest people or something like that?
Image
Stevi3
Posts: 503.0
Joined: October 21st, 2008, 1:52 pm
Location: Liverpool

Re: /undercover or /uc

Post by Stevi3 »

Yeah, we could do a couple of stings using this command.
BigAssGoat
Posts: 838.0
Joined: September 29th, 2009, 4:03 am

Re: /undercover or /uc

Post by BigAssGoat »

You guys should do this against MagC only.
Edit: Or, you could use this against nonrp advertisements instead of /su
Image
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: /undercover or /uc

Post by John_Pendergast »

Andrew_David wrote:ps. great but do you use God Father Gm for do it? im using that for szr is it.
I'd say my test GM is a GF-derivative, just as SZR is, but it's very far from the original GF.
John Pendergast
Post Reply