public OnPlayerConnect(playerid) { SetPlayerCameraPos(playerid, 2553.8188476563, -1683.1986083984, 28.681959152222); SetPlayerCameraLookAt(playerid, 2470, -1662.5, 20.39999961853); TDBBLWorld[playerid] = TextDrawCreate(174.289901, 89.249984, "Better~g~ Life"); TextDrawLetterSize(TDBBLWorld[playerid], 1.142008, 3.192497); TextDrawAlignment(TDBBLWorld[playerid], 1); TextDrawColor(TDBBLWorld[playerid], Azulado); TextDrawSetShadow(TDBBLWorld[playerid], 2); TextDrawSetOutline(TDBBLWorld[playerid], 0); TextDrawBackgroundColor(TDBBLWorld[playerid], 51); TextDrawFont(TDBBLWorld[playerid], 2); TextDrawSetProportional(TDBBLWorld[playerid], 1); TextDrawShowForPlayer(playerid, TDBBLWorld[playerid]); format(String, sizeof(String), PastaP, pName(playerid)); if(!dini_Exists(String)) { Cadastrar(playerid); return 1; } Logar(playerid); return 1; } public OnPlayerDisconnect(playerid, reason) { SalvarDados(playerid); return 1; } public OnPlayerSpawn(playerid) { SetarDados(playerid); return 1; }
TogglePlayerSpectating(playerid, 1); TogglePlayerSpectating(playerid, 0); SpawnPlayer(playerid);
new JogadorLogado[MAX_PLAYERS];
JogadorLogado[playerid] = 0;
public OnPlayerRequestSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
if(JogadorLogado[playerid] == 1) return SpawnPlayer(playerid);
return 0;
}
SpawnPlayer(playerid);
E pra ser sincero, se vocк tivesse realmente criado, vocк saberia o problema. |
SpawnPlayer(playerid);
Coloca
PHP код:
|
public OnPlayerConnect(playerid)
{
SetPlayerCameraPos(playerid, 2553.8188476563, -1683.1986083984, 28.681959152222);
SetPlayerCameraLookAt(playerid, 2470, -1662.5, 20.39999961853);
TDBBLWorld[playerid] = TextDrawCreate(174.289901, 89.249984, "Better~g~ Life");
TextDrawLetterSize(TDBBLWorld[playerid], 1.142008, 3.192497);
TextDrawAlignment(TDBBLWorld[playerid], 1);
TextDrawColor(TDBBLWorld[playerid], Azulado);
TextDrawSetShadow(TDBBLWorld[playerid], 2);
TextDrawSetOutline(TDBBLWorld[playerid], 0);
TextDrawBackgroundColor(TDBBLWorld[playerid], 51);
TextDrawFont(TDBBLWorld[playerid], 2);
TextDrawSetProportional(TDBBLWorld[playerid], 1);
TextDrawShowForPlayer(playerid, TDBBLWorld[playerid]);
format(String, sizeof(String), PastaP, pName(playerid));
if(!dini_Exists(String))
{
Cadastrar(playerid);
SetSpawnInfo(playerid, 0, 15, 1685.5984, -2333.9424, 13.5469, 269.15, 0, 0, 0, 0, 0, 0); //troque pela skin e Posiзгo desejada.
SpawnPlayer(playerid);
} else {
Logar(playerid);
SetSpawnInfo(playerid, 0, 15, 1685.5984, -2333.9424, 13.5469, 269.15, 0, 0, 0, 0, 0, 0); // troque pela skin e Posiзгo desejada.
SpawnPlayer(playerid);
}
return 1;
}