SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 23/06/2013, 12:41 AM   #11
Tanush123
High-roller
 
Tanush123's Avatar
 
Join Date: Aug 2011
Posts: 1,022
Reputation: 65
Default Re: Script Request Thread #6

/ignore [playerid / partofname] - If you ignore that person, you won't see what they say on chat
Tanush123 is offline   Reply With Quote
Old 23/06/2013, 08:53 AM   #12
Lops
Little Clucker
 
Join Date: Apr 2013
Posts: 39
Reputation: 0
Default Re: Script Request Thread #6

Hello.

I need vehicle alarm system like that.
If someone trying rob someones vehicle and alarm goes on, then it sends the message to vehicle owner, that someone trying to rob his vehicle and gives the vehicle place to owner of the car with little checkpoint.

Maybe someone can help me little with this system?
Lops is offline   Reply With Quote
Old 23/06/2013, 09:30 AM   #13
Immortal_LTU
Big Clucker
 
Join Date: Feb 2011
Location: Lithuania
Posts: 125
Reputation: 1
Default Re: Script Request Thread #6

So maybe anyone knows how to make dini load/save position ?
Immortal_LTU is offline   Reply With Quote
Old 23/06/2013, 07:03 PM   #14
conor565
Big Clucker
 
Join Date: Sep 2011
Posts: 57
Reputation: 4
Default Re: Script Request Thread #6

I need someone to make me a system where when you are /setadmin'd you will recieve a dialog and be able to set your admin name.

Here is a snippet of the /setadmin command

Code:
CMD:setadmin(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 6)
	{
		new
			iAdminValue,
			iTargetID;

		if(sscanf(params, "ui", iTargetID, iAdminValue))
		{
			SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setadmin [playerid/partofname] [level]");
		}
		else if(IsPlayerConnected(iTargetID))
		{
			if(AdminDuty[iTargetID] != 0)
			{
		    	SendClientMessage(playerid, COLOR_WHITE, "That admin is currently on-duty. They must go off-duty in order for you to set their admin level.");
		    	return 1;
			}
			new szMessage[47 + (MAX_PLAYER_NAME * 2)];

			format(szMessage, sizeof(szMessage), "AdmCmd: %s has set %s to Level %d Admin.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), iAdminValue);
			ABroadCast(COLOR_LIGHTRED,szMessage, 1);
			PlayerInfo[iTargetID][pAdmin] = iAdminValue;
			format(szMessage, sizeof(szMessage), "You have been set to Level %d Admin by %s.", iAdminValue, GetPlayerNameEx(playerid));
			SendClientMessage(iTargetID, COLOR_LIGHTBLUE, szMessage);

			if(PlayerInfo[iTargetID][pHelper] >= 1) {
			    PlayerInfo[iTargetID][pHelper] = 0;
			    PlayerInfo[iTargetID][pAcceptReport] = 0;
			}

			if(iAdminValue == 0)
			{
                format(PlayerInfo[iTargetID][pAdminName], MAX_PLAYER_NAME, "0");
			}
		}
		else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
	}
	else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
	return 1;
}

The admin name enum is pAdminName
conor565 is offline   Reply With Quote
Old 23/06/2013, 08:15 PM   #15
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,143
Reputation: 685
Default Re: Script Request Thread #6

You could of done this yourself quite easily...

Code:
ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", ""); // this needs to go in the admin command when you set their level

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(response)
	{
		case 2818:
		{
			if(!response) ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
			else
			{
				new
					szString[100];
			
				if(isnull(inputtext))
					return ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
				
				format(PlayerInfo[playerid][pAdminName], sizeof(pAdminName), "%s", inputtext);
				format(szString, sizeof(szString), "You have set your admin name to %s.", PlayerInfo[playerid][pAdminName]);
				SendClientMessage(playerid, -1, szString);
			}
		}
	}
	return 0;
}
RealCop228 is offline   Reply With Quote
Old 23/06/2013, 08:55 PM   #16
conor565
Big Clucker
 
Join Date: Sep 2011
Posts: 57
Reputation: 4
Default Re: Script Request Thread #6

Quote:
Originally Posted by RealCop228 View Post
You could of done this yourself quite easily...

Code:
ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", ""); // this needs to go in the admin command when you set their level

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(response)
	{
		case 2818:
		{
			if(!response) ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
			else
			{
				new
					szString[100];
			
				if(isnull(inputtext))
					return ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
				
				format(PlayerInfo[playerid][pAdminName], sizeof(pAdminName), "%s", inputtext);
				format(szString, sizeof(szString), "You have set your admin name to %s.", PlayerInfo[playerid][pAdminName]);
				SendClientMessage(playerid, -1, szString);
			}
		}
	}
	return 0;
}
Everytime I put in the dialog response code it makes pawn compiler stop working
conor565 is offline   Reply With Quote
Old 24/06/2013, 03:45 PM   #17
Epraizer
Little Clucker
 
Join Date: May 2013
Posts: 6
Reputation: 0
Default Re: Script Request Thread #6

Quote:
Originally Posted by Epraizer View Post
What cmd /adddealership and /addfuelvehicle In sscanf?
Please help me
Epraizer is offline   Reply With Quote
Old 25/06/2013, 02:05 AM   #18
DerickClark
High-roller
 
DerickClark's Avatar
 
Join Date: Jul 2012
Posts: 1,569
Reputation: 9
Default Re: Script Request Thread #6

Do anyone have a /pm and /dnd

and admin can see the pms like for spaming.
__________________
LS-CNR
DerickClark is offline   Reply With Quote
Old 26/06/2013, 10:31 AM   #19
volcaN131
Little Clucker
 
Join Date: Jun 2013
Posts: 23
Reputation: -1
Default Re: Script Request Thread #6

Hey guys, I am new here and I really need weapon holster mod for my RP server.
If anyone could give me a filterscript for this it would be very appericiated.
Thanks in advance, volcaN131.
volcaN131 is offline   Reply With Quote
Old 26/06/2013, 04:19 PM   #20
Tanush123
High-roller
 
Tanush123's Avatar
 
Join Date: Aug 2011
Posts: 1,022
Reputation: 65
Default Re: Script Request Thread #6

Can someone help me with /ignore?
Tanush123 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion For 'People Looking For Scripters/Helpers' freddy smyth General 12 04/05/2014 03:51 PM
Need help on Helpers DerickClark Scripting Help 2 08/02/2013 12:55 AM
Need help on Helpers DerickClark Scripting Help 4 23/01/2013 02:01 AM
Searching For Scripters [To All Scripters] Drizzy Help Archive 3 06/06/2010 03:14 PM


All times are GMT. The time now is 07:53 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.