[GameMode] United Gaming RP [0.3x - unique]

I've tested it, Awesome!
Reply

Looks awesome...
Reply

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
Reply

Looks Nice
Reply

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

Nice game mo.d
Reply

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

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

Great gm
Reply

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

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 !
Reply

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

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

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
Reply

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

How can i set my admin
Reply

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?
Reply

Wonderfull!
Reply

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)