[DUVIDA]Org Bugada
#1

olб , tou precisando de ajuda minha org policia rodoviaria ta bugada tipo eu seto lider pra min da policia rodoviaria fica de boa so que quando do spawn ne min mesmo, ele nasce la na hq da policia rodoviaria so que nasce travado, a camera e o personagem e quando reloga tambйm trava sу basta nascer na hq pra issu acontecer e й a unica org que ta assim precisando de ajuda
Reply
#2

Poste a public SetPlayerSpawn.
Reply
#3

Код:
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Cherifes spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 1403.4982,391.5114,19.7578);
		    PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 400);
			GivePlayerWeapon(playerid, 31, 500);
			GivePlayerWeapon(playerid, 29, 500);
			GivePlayerWeapon(playerid, 25, 300);
		    SetPlayerArmour(playerid, 100);
		    return 1;
		}
Reply
#4

Quote:
Originally Posted by Exwinzy_Pushing
Посмотреть сообщение
Код:
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Cherifes spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 1403.4982,391.5114,19.7578);
		    PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 400);
			GivePlayerWeapon(playerid, 31, 500);
			GivePlayerWeapon(playerid, 29, 500);
			GivePlayerWeapon(playerid, 25, 300);
		    SetPlayerArmour(playerid, 100);
		    return 1;
		}
Poste a public completa D:
Reply
#5

a public de tds spawn ?
Reply
#6

sim '-'
Reply
#7

Код:
public SetPlayerSpawn(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	    if(PlayerInfo[playerid][pTut] == 0)
	    {
			gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
			TogglePlayerControllable(playerid, 0);
			RegistrationStep[playerid] = 1;
			SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
						SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
						SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
			SendClientMessage(playerid, COLOR_WHITE, "  ");
			new str[256];
format(str, sizeof(str), "  ", playerid);
ShowPlayerDialog(playerid, 555, DIALOG_STYLE_MSGBOX, "Qual seu sexo?", str, "masculino", "feminino");
	    }
		new rand;
		new house = PlayerInfo[playerid][pPhousekey];
		if(PlayerPaintballing[playerid] != 0)
		{
		    ResetPlayerWeapons(playerid);
      		GivePlayerWeapon(playerid, 29, 999);
		    rand = random(sizeof(PaintballSpawns));
			SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
		    return 1;
		}
		if(PlayerInfo[playerid][pJailed] == 1)
		{
		    SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
			SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
			return 1;
		}
		if(PlayerInfo[playerid][pJailed] == 3)
		{
		    SetPlayerInterior(playerid, 3);
			SetPlayerPos(playerid,198.0481,175.3411,1003.0234);
			SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк ainda nгo cumpriu com sua pena, dados: Policia Federal HQ");
			return 1;
		}
		if(PlayerInfo[playerid][pJailed] == 2)
		{
		    SetPlayerInterior(playerid, 0);
			SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
			SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
			return 1;
		}
		if(house !=255)
		{
		    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
		    {
				SetPlayerToTeamColor(playerid);
				SetPlayerInterior(playerid,HouseInfo[house][hInt]);
				SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
				PlayerInfo[playerid][pLocal] = house;
				PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
				return 1;
			}
		} //PlayerInfo[playerid][pAdmin] = 0;
		if(PlayerInfo[playerid][pLeader] == 7)//prefeito spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 3);
		    SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
		    PlayerInfo[playerid][pInt] = 3;
			PlayerInfo[playerid][pLocal] = 241;
			ResetPlayerWeapons(playerid);
		    return 1;
		}
		if(PlayerInfo[playerid][pLeader] == 18)//prefeito spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerPos(playerid, -593.5941,-1061.8585,23.3902);
			ResetPlayerWeapons(playerid);
			GivePlayerWeapon(playerid, 30, 99);
		    return 1;
		}
		if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) //Police Force spawn & FBI/ATF
		{
			SetPlayerToTeamColor(playerid);
		    rand = random(sizeof(gCopPlayerSpawns));
			SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
			SetPlayerFacingAngle(playerid, 270.0);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 23, 20);
			return 1;
	    }
   		if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) //Police Force spawn & FBI/ATF
		{
			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 1743.296752, -1862.080444, 13.5767316);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			ResetPlayerWeapons(playerid);
			return 1;
	    }
	    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI spawn
		{
			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 285.5732,-1514.5084,24.9289);
			SetPlayerFacingAngle(playerid, 235.0);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 100);
			GivePlayerWeapon(playerid, 31, 200);
			GivePlayerWeapon(playerid, 29, 300);
			SetPlayerArmour(playerid, 100);
			return 1;
	    }
		if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) //National Guard spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 2731.9526,-2451.7964,17.5937);
		    PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 400);
			GivePlayerWeapon(playerid, 31, 700);
			GivePlayerWeapon(playerid, 29, 600);
			GivePlayerWeapon(playerid, 25, 600);
		    SetPlayerArmour(playerid, 100);
		    return 1;
		}
		if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 2033.1431,-1405.6340,17.2290);
		    PlayerInfo[playerid][pInt] = 0;
		    return 1;
		}
		if (GangDead[playerid] == 0 && (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5))//ballas spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 2091.461669,-1166.446533,26.585937);
		    PlayerInfo[playerid][pInt] = 0;
		    GivePlayerWeapon(playerid, 24, 20);
		    return 1;
		}
		if (GangDead[playerid] == 0 && (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6))//Grove spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 2500.3394,-1681.1781,13.2052);
		    PlayerInfo[playerid][pInt] = 0;
		    GivePlayerWeapon(playerid, 24, 20);
		    return 1;
		}
	    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
	    {
	        SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 100);
			GivePlayerWeapon(playerid, 31, 200);
			GivePlayerWeapon(playerid, 29, 200);
			GivePlayerWeapon(playerid, 4, 200);
	        return 1;
	    }
	    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
	    {
	        SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 736.1425,-1339.2103,13.5300);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 43, 700);
	        return 1;
	    }
	    if(GangDead[playerid] == 0 && (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12))
	    {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid, 2350.3887,-1165.0804,27.4014);
			SetPlayerFacingAngle(playerid, 7.6507);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 20);
			return 1;
	    }
	    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //Motoqueiros spawn
	    {
   			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 681.7586,-477.0193,16.3359);			
 			SetPlayerFacingAngle(playerid, 178.5);           
            SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 20);
			
	        return 1;
        }
        if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Cherifes spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 1403.4982,391.5114,19.7578);
		    PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 400);
			GivePlayerWeapon(playerid, 31, 500);
			GivePlayerWeapon(playerid, 29, 500);
			GivePlayerWeapon(playerid, 25, 300);
		    SetPlayerArmour(playerid, 100);
		    return 1;
		}
        if(GangDead[playerid] == 0 && (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)) //Aztecas
	    {
			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 1831.364868,-1995.974731,13.546875);
			SetPlayerFacingAngle(playerid, 85.230644);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 20);
			return 1;
        }
        if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) //Triads
	    {
			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 691.387817,-1275.792968,13.560600);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 100);
			GivePlayerWeapon(playerid, 31, 200);
			GivePlayerWeapon(playerid, 29, 200);
			return 1;
        }
        if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //yakuza
	    {
			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 1256.3743896484, -786.27270507813, 92.030181884766);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			GivePlayerWeapon(playerid, 24, 100);
			GivePlayerWeapon(playerid, 31, 200);
			GivePlayerWeapon(playerid, 29, 200);
			return 1;
        }
		if ((gTeam[playerid]) == 1)
	    {
			SetPlayerToTeamColor(playerid);
			rand = random(sizeof(gMedPlayerSpawns));
			SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
			SetPlayerFacingAngle(playerid, 270.0);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			return 1;
		}
		if(PlayerInfo[playerid][pFMember] != 255)
		{
		    new family = PlayerInfo[playerid][pFMember];
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
		    SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
		    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
		    return 1;
		}
	    else
	    {
			SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
			SetPlayerFacingAngle(playerid, 46.8583);
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
		}
		GangDead[playerid] = 0;
	}
	TextDrawShowForPlayer(playerid, Site);
	return 1;
}
Reply
#8

Bote isso aonde tem o spawn da org policia rodoviaria

pawn Код:
TogglePlayerControlable(playerid, 1);
Ajudei? REP+
Reply
#9

Код:
C:\Users\kaique\Desktop\serve gta\gamemodes\POU.pwn(7301) : error 017: undefined symbol "TogglePlayerControlable"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
atй agora nada funfo =/
Reply
#10

tava escrito errado mais msm assim nem um dos 2 funfo =/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)