GM problem !
#1

I got a problem with player spawm ... Idk why if a players spawns into my server the screen shows like a very dense fog but you are on the ground not in mid-air . Here is the picture :

And here is the pawno code :
Код:
new Float:gRandomPlayerSpawns[1][3] = {
{-318.1110,7.8438,61.0809} // sp1
};
/*
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438},
{-2720.4207,-318.1110,7.8438}
};
*/
What can i do !?


And another thing : how can i add house icons ? I want to add house icons that when a house is for sell the icon is green and when its buyed it goes red TKS a lot please help please !!!!
Reply
#2

OnPlayerSpawn SetPlayerInterior(playerid, 0)
Reply
#3

What's with this ?! Where should i add this ?
Reply
#4

Quote:
Originally Posted by Kirchhoff
What's with this ?! Where should i add this ?
Find public OnPlayerSpawn(playerid) & put it there. As he stated above if you read it properly.
Reply
#5

Hey man i still got the same problem .... What can i do ?! Here is how my pawno code looks now :
Код:
public OnPlayerSpawn(playerid)
{
	if (gdebug >=1){printf("OnPlayerSpawn Playerid:%d", playerid);}
	if (teamcarlock)
	{
		TeamLockDoors(playerid);
	}
	InitLockDoors(playerid);
	if(accountplay)
	{
		if (gdebug >=1){printf("accountplay");}
		if (gPlayerAccount[playerid] == 0)
		{
			gTeam[playerid] = 0;
			GameTextForPlayer(playerid, "~w~Welcome.~n~In order to play you need to create an account, type ~n~~r~/regnick (password)~w~ to register", 20000, 3);
			//SetPlayerInterior(playerid,0);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerPos(playerid,198.5,162.5,1003.0);
			// airport
			PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000);
			gPlayerSpawned[playerid] = 0;
  		return 1;
		}
		if (gPlayerLogged[playerid] == 0)
		{
			gTeam[playerid] = 0;
			GameTextForPlayer(playerid, "~w~In order to play you need to log in to your account, type ~n~~g~/login (password)~w~ to log in", 20000, 3);
			//SetPlayerInterior(playerid,0);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerPos(playerid,198.5,162.5,1003.0);
			// airport
			PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000);
			gPlayerSpawned[playerid] = 0;
  		return 1;
		}
	}
	if (gPlayerSpawned[playerid] == 0)
	{
		gTeam[playerid] = PlayerInfo[playerid][pTeam];
		if (gTeam[playerid] == 2 && forceteam && CopCheck(playerid))
		{
			gTeam[playerid] = 0;
			PlayerInfo[playerid][pTeam] = 3;
			SetPlayerRandomSpawn(playerid);
			SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your are not allowed to be a cop.");
		}
		/*
		if(gTeam[playerid] == 2 && PlayerInfo[playerid][pLevel] < 3)
		{
			gTeam[playerid] = 3;
			PlayerInfo[playerid][pTeam] = 3;
			SetPlayerRandomSpawn(playerid);
			SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You must be level 3 to join the cops.");
		}
		*/
		if (gTeam[playerid] == 1 && forceteam && MedCheck(playerid))
		{
			gTeam[playerid] = 3;
			PlayerInfo[playerid][pTeam] = 3;
			SetPlayerRandomSpawn(playerid);
			SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your are not allowed to be a paramedic.");
		}
		if (gTeam[playerid] == 4) //medic / criminal reset team
		{
			gTeam[playerid] = PlayerInfo[playerid][pTeam];
		}
		/*
		if (FirstSpawn[playerid] == 0)
		{
			SetPlayerToTeamColor(playerid);
			SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
			printf("PlayerInfo[playerid][pInt]= %d",PlayerInfo[playerid][pInt]);
			SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
			gPlayerSpawned[playerid] = 1;
			FirstSpawn[playerid] = 1;
			print("insidespawn or firstsawpn");
			return 1;
		}
		*/
		SetPlayerRandomSpawn(playerid);
		if (gdebug){printf("DEBUG id = %d gTeam = %d",playerid,gTeam[playerid]);}
		//SetPlayerPos(playerid, 1360.0217,2565.6328,10.8265);///badspawn
		//SetPlayerWorldBounds(playerid,3500.00,66.67,-653.33,-2806.67);
		/*
Reply
#6

Help
Reply
#7

Up !
Reply
#8

http://forum.sa-mp.com/index.php?topic=114010.0
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)