30.04.2013, 16:41
Quote:
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, 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 |
O poblema й que quando o jogador compra 1 casa, ele nao vai para a posiзгo correta.