[Ajuda]Denovo, ajuda rapida
#1

Queria saber 2 coisas,
1є - й como por aqueles textdrwas, conforme vc muda de skins. Por exemplo, vc vai mudando as skins e dai mostra "Gang dos groves".. "Gang dos Balas".. e assim vai.

2є - Estou usando cameras para selecionar a skin do player, no RequestClass, e estou usando um interior tmb. Mas quando dou spawn, eu saio em uma coordenada no interior 0, e fica tudo cinza, pq o GM nгo seta os interiores automaticamente. Queria saber se tem como por algum code em algum lugar, para setar o interior do player qndo ele der spawn. VLW
Reply
#2

TextDrawSetString a cada vez que mudar a skin.

Coloca SetPlayerInterior(playerid, 0); assim que ele escolher a skin.
Reply
#3

Mas vini, por SetPlayerInterior, aonde? no OnPlayerRequestClass?

pode me dar um exemplo de TextDrawSetString?
Reply
#4

pawn Код:
GameTextForPlayer(playerid, "Groove", 500, 3);
e a sim por diante..
Reply
#5

Pode ser no OnPlayerSpawn(se nгo for spawn em interiores)

pawn Код:
new Text:Teste;

// OnGameModeInit
Teste = TextDrawCreate(100.0, 100.0, "Testando");

//Mudanзa de skin
TextDrawSetString(Teste , "Gang tal");  
TextDrawShowForPlayer(playerid, Teste);
Reply
#6

hm ok. vlw ae aos 2

edit: da erro, dizendo q ele n conheзe o playerid.
Reply
#7

Colocou em qual public ?
Reply
#8

acho q ele coloco na public OnGameModeInit()

Talvez se ele colova na public OnPlayerConnect(playerid) funcione.
Reply
#9

public OnGameModeInit() - coloquei ai, vou por na on connect e ver

Edit: se ponho na PlayerConnect, compila mas nada acontece. Estou usando o codigo assim:

pawn Код:
public OnGameModeInit()
{
    SetGameModeText("CopS and RobberS");
    //Cops
    AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(284, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    //Civis
    AddPlayerClass(2, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(4, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(6, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(15, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
    //Cops
    AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "LSPD", 500, 3);
    AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "LSPD", 500, 3);
    AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "LSPD", 500, 3);
    AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "LSPD", 500, 3);
    AddPlayerClass(284, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "LSPD", 500, 3);
    AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "LSPD", 500, 3);
    //Civis
    GameTextForPlayer(playerid, "Civil", 500, 3);
    AddPlayerClass(2, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "Civil", 500, 3);
    AddPlayerClass(4, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "Civil", 500, 3);
    AddPlayerClass(6, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "Civil", 500, 3);
    AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "Civil", 500, 3);
    AddPlayerClass(15, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "Civil", 500, 3);
    AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    GameTextForPlayer(playerid, "Civil", 500, 3);
    return 1;
}
Reply
#10

Deixa AddPlayerClass sу em OnGameModeInit.


OnGameModeInit, coloca no OnPlayerRequestClass
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)