[Ajuda] Poblema com Spawn
#6

Quote:
Originally Posted by eDlAndrePawno
Посмотреть сообщение
Nao entendi muito isso mais acho q vou ajudar um pouco..

Aqui ta um codigo do meu GM..quando ele escolhe a gang ele й setado para sua posicao que definir veja:


Код:
   	if(classid == 0 || classid == 1 || classid == 2)
{
    GameTextForPlayer(playerid,"~r~]Grove Street]",1000,4);

    SetPlayerColor(playerid,Cor_Grove);
    gangteam[playerid] = 0;
    SetPlayerTeam(playerid, Grove);
    format(pgang[playerid],15,pgangnames[0]);
}
	else if(classid == 3 || classid == 4 || classid == 5 )
{
    GameTextForPlayer(playerid,"~r~]Ballas]",1000,4);

    SetPlayerColor(playerid,Cor_Ballas);
    gangteam[playerid] = 1;
    SetPlayerTeam(playerid, Ballas);
    format(pgang[playerid],15,pgangnames[1]);
}
	else if(classid == 6 || classid == 7 || classid == 8 )
{
    GameTextForPlayer(playerid,"~r~]Vagos]",1000,4);

    SetPlayerColor(playerid,Cor_Vagos);
    gangteam[playerid] = 2;
    SetPlayerTeam(playerid, Vagos);
    format(pgang[playerid],15,pgangnames[1]);
}
SetPlayerTeam(playerid, Grove);
SetPlayerTeam(playerid, Vagos);<<-- Posicao onde ele vai parar que eu definir no OnGameModeInit
SetPlayerTeam(playerid, Ballas);

Код:
	AddPlayerClassEx(Grove, 270,2498.2800,-1682.8708,13.3622,20.0210,0,0,0,0,0,0); // Spawn Grove
	AddPlayerClassEx(Grove, 0,2498.2800,-1682.8708,13.3622,20.0210,0,0,0,0,0,0); // Spawn Grove
	AddPlayerClassEx(Grove, 107,2498.2800,-1682.8708,13.3622,20.0210,0,0,0,0,0,0); // Spawn Grove
	AddPlayerClassEx(Ballas, 102,1981.0737,-1233.8701,20.0469,281.1881,0,0,0,0,0,0); // Spawn Ballas
	AddPlayerClassEx(Ballas, 103,1981.0737,-1233.8701,20.0469,281.1881,0,0,0,0,0,0); // Spawn Ballas
	AddPlayerClassEx(Ballas, 104,1981.0737,-1233.8701,20.0469,281.1881,0,0,0,0,0,0); // Spawn Ballas
	AddPlayerClassEx(Vagos, 108,2580.7122,-969.2730,81.3635,100.2549,0,0,0,0,0,0); // Spawn Vagos
	AddPlayerClassEx(Vagos, 109,2580.7122,-969.2730,81.3635,100.2549,0,0,0,0,0,0); // Spawn Vagos
	AddPlayerClassEx(Vagos, 110,2580.7122,-969.2730,81.3635,100.2549,0,0,0,0,0,0); // Spawn Vagos
Ajudei?
Eu entendi oq vc quiz dizer, mais no gm eu tenho as posiзхes corretas.
O poblema й que quando o jogador compra 1 casa, ele nao vai para a posiзгo correta.
Reply


Messages In This Thread
Poblema com Spawn - by Ichigo_Kurosaki - 30.04.2013, 14:34
Re: Poblema com Spawn - by Ley - 30.04.2013, 15:30
Re: Poblema com Spawn - by AnonymousQ - 30.04.2013, 16:02
Respuesta: Re: Poblema com Spawn - by Ichigo_Kurosaki - 30.04.2013, 16:09
Re: Poblema com Spawn - by eDlAndrePawno - 30.04.2013, 16:28
Respuesta: Re: Poblema com Spawn - by Ichigo_Kurosaki - 30.04.2013, 16:41
Re: Poblema com Spawn - by eDlAndrePawno - 30.04.2013, 16:45
Respuesta: Poblema com Spawn - by Ichigo_Kurosaki - 30.04.2013, 16:48
Respuesta: Poblema com Spawn - by Ichigo_Kurosaki - 02.05.2013, 10:58
Re: Poblema com Spawn - by AnonymousQ - 02.05.2013, 15:30

Forum Jump:


Users browsing this thread: 2 Guest(s)