SA-MP Forums Archive
[GameMode] United Gaming RP [0.3x - unique] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] United Gaming RP [0.3x - unique] (/showthread.php?tid=430334)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


Re: United Gaming RP [0.3x - unique] - ScriptFohLife - 13.11.2014

I've tested it, Awesome!


Re: United Gaming RP [0.3x - unique] - Bridge - 07.12.2014

Looks awesome...


Re: United Gaming RP [0.3x - unique] - Riversong - 05.02.2015

To disable the annoying first person cam turning on automatically when you enter a car find this, and change the 3 red lines:

Код:
if(newstate == PLAYER_STATE_DRIVER)
	{
		if(GetPVarInt(playerid,"used") == 0)
		{
			new p = GetPlayerVehicleID(playerid);
			pObj[playerid] = CreatePlayerObject(playerid,19300, 0.0000, -1282.9984, 10.1493, 0.0000, -1, -1, 100);
			AttachPlayerObjectToVehicle(playerid,pObj[playerid],p,-0.314999, -0.195000, 0.510000, 0.000000, 0.000000, 0.000000);
			//AttachCameraToPlayerObject(playerid,pObj[playerid]); // Comment this out
			SetCameraBehindPlayer(playerid); // Add this
			DestroyPlayerObject(playerid,pObj[playerid]); // And this
			SetPVarInt(playerid,"used",1);
		}
	}
Does anyone know where do I change it so the game accepts single-word nicknames? Right now, when someone logs in with a nickname like "Albert1" it forces them to log out and change their name to Name_Lastname.

EDIT: Found it. For anyone who needs:

Quote:

Find this:
Код:
new namestring = strfind(sendername, "_", true);
			if(namestring == -1)
			{
				SendClientMessage(playerid, COLOR_YELLOW, "Your name must be in the Firstname_Lastname format - Please re-log with a name such as John_Smith");
				SetTimerEx("GettingKicked", 2000, false, "i", playerid);
                //ShowPlayerDialog(playerid,CNAME_DIALOG,DIALOG_STYLE_INPUT, "RP Name-change.", "Please input a RP name with the Firstname_Lastname format", "Okay", "Cancel");
				return 1;
			}
			else
			{
			    if(!strlen(inputtext))
		    	{
			        DisplayDialogForPlayer(playerid, 2); //register
					SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
					return 1;
				}
                if (SQL_AccountExists(sendername))
			    {
					SendClientMessage(playerid, COLOR_YELLOW, "That name is already taken, please choose a different one.");
					return 1;
				}
				new tmppass[64];
                strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
				//PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Ye%20Scallywag.mp3");
				PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Jay%20Rock%20%26quot%3BHood%20Gone%20Love%20It%26quot%3B%20Music%20Video.mp3");
				ClearChatbox(playerid, 100);
				//FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0);
				OnPlayerRegister(playerid,tmppass);
				OnPlayerLogin(playerid,tmppass);
				//SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically.");
			}
And replace it all with this:
Код:
if(!strlen(inputtext))
		    	{
			        DisplayDialogForPlayer(playerid, 2); //register
					SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password.");
					return 1;
				}
                if (SQL_AccountExists(sendername))
			    {
SendClientMessage(playerid, COLOR_YELLOW, "That name is already taken, please choose a different one.");
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
				//PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Ye%20Scallywag.mp3");
PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Jay%20Rock%20%26quot%3BHood%20Gone%20Love%20It%26quot%3B%20Music%20Video.mp3");
ClearChatbox(playerid, 100);
//FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0);
OnPlayerRegister(playerid,tmppass);
OnPlayerLogin(playerid,tmppass);
//SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically.");
PS. Sorry if I made any errors, it's the first time I use PAWN and I pretty much just try to work out how stuff works by reading the code - if any errors occur, please inform me about it and I will try to fix it


Re : United Gaming RP [0.3x - unique] - saafi - 01.04.2015

Looks Nice


Re: United Gaming RP [0.3x - unique] - ognyanov - 27.07.2015

when i register in the scriptfile folder there is no file with my name and .ini
how to fix that ?


Re: United Gaming RP [0.3x - unique] - RonaldinhoVantoras - 27.07.2015

Nice game mo.d


Re: United Gaming RP [0.3x - unique] - ognyanov - 27.07.2015

When i type /makeleader 0 1 there is a message Invalid Faction ID ? how to fix that ?


Re: United Gaming RP [0.3x - unique] - RedLabel - 30.07.2015

Quote:
Originally Posted by ognyanov
View Post
When i type /makeleader 0 1 there is a message Invalid Faction ID ? how to fix that ?
you have to create the faction, is dynamic.


Re: United Gaming RP [0.3x - unique] - BladeFire - 30.07.2015

Great gm


Re: United Gaming RP [0.3x - unique] - ognyanov - 13.09.2015

Quote:
Originally Posted by RedLabel
View Post
you have to create the faction, is dynamic.
How to create ?


Re: United Gaming RP [0.3x - unique] - naor5784 - 16.09.2015

goood job ! i like !!!!! recpect !
hard work !!
but i need you help :
how i can to be admin /rcon ?
when i type the comand /rcon login [password] - so the server close the connection...
thank !


Re: United Gaming RP [0.3x - unique] - lxlAlm0oTlxl - 17.09.2015

Good Thanks , it Very Good i think you Worked Hard On That Gamemode Good Luck


Re: United Gaming RP [0.3x - unique] - k2rl - 15.11.2015

I buy a car, relog and i don't have it anymore, help me someone.


Re: United Gaming RP [0.3x - unique] - hariyanuar - 18.03.2016

Quote:
Originally Posted by naor5784
Посмотреть сообщение
goood job ! i like !!!!! recpect !
hard work !!
but i need you help :
how i can to be admin /rcon ?
when i type the comand /rcon login [password] - so the server close the connection...
thank !
You need to change the RCON PASSWORD In-game, use command /server.

+Rep me if i helping


Re: United Gaming RP [0.3x - unique] - Huzaim - 14.04.2016

Nice work buddy
But i've some question how i will do with it. where i can use it tell me file name?


Re: United Gaming RP [0.3x - unique] - jaberaaa - 07.06.2016

How can i set my admin


- VinHanako - 10.06.2016

Can i ask where is the VIP area? I tried to /enter but there is no interior

Wy the VIP entrance locked? How to unlock it and the interior of VIP?


Re: United Gaming RP [0.3x - unique] - SeanGarnier - 10.06.2016

Wonderfull!


Re: United Gaming RP [0.3x - unique] - VinHanako - 10.06.2016

Can i ask if where is the VIP and how to set a password in gate. thnaks


Re: United Gaming RP [0.3x - unique] - VinHanako - 11.06.2016

I wanna ask if how ill remove the gate in the "SABI HQ" the backdoor gate i cant /facgate .