SA-MP Forums Archive
[GameMode] [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - 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] [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) (/showthread.php?tid=22818)

Pages: 1 2 3 4 5 6 7


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - charlins - 03.09.2008

1. My GTA-SA is clean .Did not have any MxD

2.This is /taketest bug .Include Air and boats .Plz somebody help me to fix this problem .

Thx so much


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - 555 - 03.09.2008

Quote:
Originally Posted by charlins
1. My GTA-SA is clean .Did not have any MxD
And then how did you get that velocimeter?

Zodiac


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - kamilbam - 04.09.2008

The Map is very good i tried it out, and its working. Took me 2:30 hour to make that database cuz im noob in php na sql but its working now. I got only 1 question how do civilians change clothes cuz if i press f4 na type /kill it only spawn me again. I also tried to use /clothes command in binco but it dosent work for civlianc can so somebody tell me how to change clothes as civilian?


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - nicke157 - 04.09.2008

Quote:
Originally Posted by kamilbam
The Map is very good i tried it out, and its working. Took me 2:30 hour to make that database cuz im noob in php na sql but its working now. I got only 1 question how do civilians change clothes cuz if i press f4 na type /kill it only spawn me again. I also tried to use /clothes command in binco but it dosent work for civlianc can so somebody tell me how to change clothes as civilian?
Found:

Код:
public OnPlayerRequestClass(playerid, classid)
{
	new string[128];
	if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
	{
		ClearChatbox(playerid, 10);
		format(string, sizeof(string), "Welcome to Moderntopia Roleplay: Los Santos, running %s", SCRIPT_VERSION);
		SendClientMessage(playerid, COLOR_YELLOW, string);
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		if (gPlayerAccount[playerid] != 0)
		{
			SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: You are a registered citizen of San Andreas.");
			SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Use /login <password> to log in to your game account.");
		}
		else
		{
			SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: Please supply the necessary immigration documents by typing /register <password>");
			SendClientMessage(playerid, COLOR_YELLOW2, "WARNING: The account you create will have limited abilities until you register on http://moderntopia.com/!");
		}
		SetPlayerCameraPos(playerid, 1500.7156,-1778.1880,80.3080);
		SetPlayerCameraLookAt(playerid, 1500.7156,-1778.1880,80.3080);
		//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
		PlayerInfo[playerid][pModel] = Peds[classid][0];
		SetPlayerTeamFromClass(playerid,classid);
	}
	else SpawnPlayer(playerid);
	return false;
 /*	if (classid == 1)
	{
			format(string, sizeof(string), "~y~> ~p~Police Chief ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 2)
	{
			format(string, sizeof(string), "~y~> ~p~FBI/ATF Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 3)
	{
			format(string, sizeof(string), "~y~> ~p~The Company Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 4)
	{
			format(string, sizeof(string), "~y~> ~p~Fire/Ambulance Chief ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 5)
	{
			format(string, sizeof(string), "~y~> ~p~Slaughta House Boss ~y~< ~n~Bosses only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 6)
	{
			format(string, sizeof(string), "~y~> ~p~Eastside Hoods Boss ~y~< ~n~Bosses only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 7)
	{
			format(string, sizeof(string), "~y~> ~p~Governor ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 8)
	{
			format(string, sizeof(string), "~y~> ~p~Hitman Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 9)
	{
			format(string, sizeof(string), "~y~> ~p~News Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 10)
	{
			format(string, sizeof(string), "~y~> ~p~SAPT Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 11)
	{
			format(string, sizeof(string), "~y~> ~p~License Faction Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 12)
	{
			format(string, sizeof(string), "~y~> ~p~Nucci Don ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 13)
	{
			format(string, sizeof(string), "~y~> ~p~Top Shottas Boss ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 14)
	{
			format(string, sizeof(string), "~y~> ~p~Le Sangre Boss ~y~< ~n~Boss only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 15)
	{
			format(string, sizeof(string), "~y~> ~p~DRMC Spike~y~< ~n~Leader only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 16)
	{
			format(string, sizeof(string), "~y~> ~p~Bratva ~y~< ~n~Leader only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 17)
	{
			format(string, sizeof(string), "~y~> ~p~The White Hand ~y~< ~n~Leader only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else
	{
		format(string, sizeof(string), " ");
		GameTextForPlayer(playerid,string,3500,6);
	}
	SetupPlayerForClassSelection(playerid);
	return 1;*/
}

public OnPlayerRequestSpawn(playerid)
{
	return true;
}

public SetupPlayerForClassSelection(playerid)
{
/*	switch (gTeam[playerid])
	{
		case TEAM_BLUE:
		{
      SetPlayerInterior(playerid,14);
			SetPlayerPos(playerid,-1833.0959,18.5737,1061.1436);
			SetPlayerFacingAngle(playerid,180.0);
		  SetPlayerCameraPos(playerid, -1833.3585,11.9667,1061.1436);
		  SetPlayerCameraLookAt(playerid,-1833.0959,18.5737,1061.1436);
		}
		case TEAM_ADMIN:
		{
      SetPlayerInterior(playerid,14);
			SetPlayerPos(playerid,-1833.0959,18.5737,1061.1436);
			SetPlayerFacingAngle(playerid,180.0);
		  SetPlayerCameraPos(playerid, -1833.3585,11.9667,1061.1436);
		  SetPlayerCameraLookAt(playerid,-1833.0959,18.5737,1061.1436);
		}
		default:
		{
		  SetPlayerInterior(playerid,14);
			SetPlayerPos(playerid,-1833.0959,18.5737,1061.1436);
			SetPlayerFacingAngle(playerid,180.0);
		  SetPlayerCameraPos(playerid, -1833.3585,11.9667,1061.1436);
		  SetPlayerCameraLookAt(playerid,-1833.0959,18.5737,1061.1436);
		}
	}*/
}

//---------------------------------------------------------

public SetPlayerTeamFromClass(playerid,classid)
{
 	if (classid >= 1 && classid <= 11)
	{
		gTeam[playerid] = 11; //admin
		PlayerInfo[playerid][pTeam] = 11;
	}
	else
	{
	  gTeam[playerid] = 3;
	  PlayerInfo[playerid][pTeam] = 3;
	}
}
and replace with this code:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	new string[128];
	PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
	PlayerInfo[playerid][pModel] = Peds[classid][0];
 	if (classid == 1)
	{
			format(string, sizeof(string), "~y~> ~p~Police Chief ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 2)
	{
			format(string, sizeof(string), "~y~> ~p~FBI/ATF Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 3)
	{
			format(string, sizeof(string), "~y~> ~p~The Company Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 4)
	{
			format(string, sizeof(string), "~y~> ~p~Fire/Ambulance Chief ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 5)
	{
			format(string, sizeof(string), "~y~> ~p~Slaughta House Boss ~y~< ~n~Bosses only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 6)
	{
			format(string, sizeof(string), "~y~> ~p~Eastside Hoods Boss ~y~< ~n~Bosses only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 7)
	{
			format(string, sizeof(string), "~y~> ~p~Governor ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 8)
	{
			format(string, sizeof(string), "~y~> ~p~Hitman Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 9)
	{
			format(string, sizeof(string), "~y~> ~p~News Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 10)
	{
			format(string, sizeof(string), "~y~> ~p~SAPT Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 11)
	{
			format(string, sizeof(string), "~y~> ~p~License Faction Leader ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 12)
	{
			format(string, sizeof(string), "~y~> ~p~Nucci Don ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 13)
	{
			format(string, sizeof(string), "~y~> ~p~Top Shottas Boss ~y~< ~n~Leaders only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 14)
	{
			format(string, sizeof(string), "~y~> ~p~Le Sangre Boss ~y~< ~n~Boss only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 15)
	{
			format(string, sizeof(string), "~y~> ~p~DRMC Spike~y~< ~n~Leader only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 16)
	{
			format(string, sizeof(string), "~y~> ~p~Bratva ~y~< ~n~Leader only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else if (classid == 17)
	{
			format(string, sizeof(string), "~y~> ~p~The White Hand ~y~< ~n~Leader only!");
			GameTextForPlayer(playerid,string,3500,6);
	}
	else
	{
		format(string, sizeof(string), "~y~> ~g~Civilian ~y~<");
		GameTextForPlayer(playerid,string,3500,6);
	}
	SetPlayerTeamFromClass(playerid,classid);
	SetupPlayerForClassSelection(playerid);

	ClearChatbox(playerid, 10);
	format(string, sizeof(string), "Welcome to Moderntopia Roleplay: Los Santos, running %s", SCRIPT_VERSION);
	SendClientMessage(playerid, COLOR_YELLOW, string);

	if (gPlayerAccount[playerid] != 0)
	{
			SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: You are a registered citizen of San Andreas.");
			SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Use /login <password> to log in to your game account.");
	}
	else
	{
			SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: Please supply the necessary immigration documents by typing /register <password>");
			SendClientMessage(playerid, COLOR_YELLOW2, "WARNING: The account you create will have limited abilities until you register on http://moderntopia.com/!");
	}
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return true;
}

public SetupPlayerForClassSelection(playerid)
{
	switch (gTeam[playerid])
	{
		case TEAM_BLUE:
		{
      SetPlayerInterior(playerid,14);
			SetPlayerPos(playerid,-1833.0959,18.5737,1061.1436);
			SetPlayerFacingAngle(playerid,180.0);
		  SetPlayerCameraPos(playerid, -1833.3585,11.9667,1061.1436);
		  SetPlayerCameraLookAt(playerid,-1833.0959,18.5737,1061.1436);
		}
		case TEAM_ADMIN:
		{
      SetPlayerInterior(playerid,14);
			SetPlayerPos(playerid,-1833.0959,18.5737,1061.1436);
			SetPlayerFacingAngle(playerid,180.0);
		  SetPlayerCameraPos(playerid, -1833.3585,11.9667,1061.1436);
		  SetPlayerCameraLookAt(playerid,-1833.0959,18.5737,1061.1436);
		}
		default:
		{
		  SetPlayerInterior(playerid,14);
			SetPlayerPos(playerid,-1833.0959,18.5737,1061.1436);
			SetPlayerFacingAngle(playerid,180.0);
		  SetPlayerCameraPos(playerid, -1833.3585,11.9667,1061.1436);
		  SetPlayerCameraLookAt(playerid,-1833.0959,18.5737,1061.1436);
		}
	}
}

//---------------------------------------------------------

public SetPlayerTeamFromClass(playerid,classid)
{
 	if (classid >= 1 && classid <= 11)
	{
		gTeam[playerid] = 11; //admin
		PlayerInfo[playerid][pTeam] = 11;
	}
	else
	{
	  gTeam[playerid] = 3;
	  PlayerInfo[playerid][pTeam] = 3;
	}
}



Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - kamilbam - 04.09.2008

Thx Nicke but when im spawning, no matter wich skin i choose its spawning me with default one : /


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - Chaprnks - 04.09.2008

Quote:
Originally Posted by kamilbam
Thx Nicke but when im spawning, no matter wich skin i choose its spawning me with default one : /
Did you choose the skin after logging in and then press F4 then /kill?


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - kamilbam - 05.09.2008

Quote:
Originally Posted by Adam_Chaprnka
Quote:
Originally Posted by kamilbam
Thx Nicke but when im spawning, no matter wich skin i choose its spawning me with default one : /
Did you choose the skin after logging in and then press F4 then /kill?
Yeh i logged in then i spawn i pressed f4 and tehn /kill and i got crash every time. I think i gonna make php script so peoples gonna choose skin on the website and after they did it, it gonna autmaticly change skin in .ini file

Ps: sry for bad english.


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - extra - 24.10.2008

what is this

C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1799) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1809) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1831) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1840) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1912) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1930) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1975) : error 017: undefined symbol "samp_mysql_free_result"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(2012) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(2013) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(202 : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(10990) : error 017: undefined symbol "samp_mysql_strtok"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(10991) : error 017: undefined symbol "samp_mysql_strtok"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1109 : error 017: undefined symbol "samp_mysql_free_result"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


13 Errors.



Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - 1337pr0 - 25.10.2008

Quote:
Originally Posted by extra
what is this

C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1799) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1809) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1831) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1840) : error 017: undefined symbol "samp_mysql_ping"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1912) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1930) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1975) : error 017: undefined symbol "samp_mysql_free_result"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(2012) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(2013) : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(202 : error 017: undefined symbol "samp_mysql_real_escape_string"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(10990) : error 017: undefined symbol "samp_mysql_strtok"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(10991) : error 017: undefined symbol "samp_mysql_strtok"
C:\DOCUME~1\a\Desktop\SA-MPS~1\GAMEMO~1\MTRP-F~1.PWN(1109 : error 017: undefined symbol "samp_mysql_free_result"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


13 Errors.
I think you need the SA:MP MySQL plugin...


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - extra - 26.10.2008

i have it


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - aslankokb - 26.10.2008

Perfect !! But MySQL system I can't do anything cause of it


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - dafel2 - 31.10.2008

14 leader falls trough floor


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - ICECOLDKILLAK8 - 01.11.2008

Quote:
Originally Posted by dafel2
14 leader falls trough floor
proly just need to set te right interior for when they spawn


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - dafel2 - 03.11.2008

and..
where i can get gun dealer mats
n drug dealer pickup


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - Jamould - 04.11.2008

Im trying to add the fishing and cooking skill from Moderntopia to my gamemode but whenever I catch my fish and sell them it says caught to many fishes wait until its reduced its not suppose to do this very often and when it does its supposed to last for awhile. My gamemode is a customized version of Public enemy number 1


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - miroslav - 04.11.2008

Код:
[11:00]  Moderntopia: Los Santos
[11:00] _____________________________
[11:00] By Moderntopia Scripting Team 
[11:00] 
[11:00] MYSQL: Moderntopia MySQL Player Accounts v0.1 by Luk0r
[11:00] MYSQL: Attempting to connect to server...
[11:00] 
Connection to MySQL database: Successfull !
[11:00] MYSQL: Database connection established.
can somebody help





Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - mamorunl - 04.11.2008

lol,
There is a MySQL connection and you want help? with WHAT?!


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - Christopher Mooney - 18.04.2010

This mod crashes the server and can't doesn't allow you to login to your acccount


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - fil22t - 24.04.2010

Thank


Re: [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL) - gcw - 06.05.2010

I have a problem when more like 24 players come to the server, then they must re-register even though they already have an account. Wheres the Problem?