Problema ao spawnar. -
Tugamars - 16.02.2015
http://i.imgur.com/ot2FqrL.png
Isto й o que acontece quando tento spawnar no meu servidor .
Eu nгo mudei o gamemode sequer , de um momento para o outro comeзou assim .
OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,1469.3359, -1732.2891, 15);
SetTimerEx("AtualizarPing", 100, true, "n", playerid);
new string[64], nome[MAX_PLAYERS];
GetPlayerName(playerid, nome[playerid], MAX_PLAYER_NAME);
format(string, sizeof(string),"%s",nome[playerid]);
TextDrawSetString(Textdraw6, string);
TextDrawShowForPlayer(playerid, Textdraw6);
new string1[10];
format(string1, sizeof(string1), "%d/%d", PlayersOnline,GetMaxPlayers());
TextDrawSetString(Textdraw8, string1);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Projetonome);
return 1;
}
Й um simples servidor de testes , nгo tem nada muito "grande" para causar isto , acho eu.
Re: Problema ao spawnar. -
NexNix - 16.02.2015
SetPlayerPos(playerid,1469.3359, -1732.2891, 15);
Em que lugar da isso?
Re: Problema ao spawnar. -
Tugamars - 16.02.2015
Quote:
Originally Posted by NexNix
SetPlayerPos(playerid,1469.3359, -1732.2891, 15);
Em que lugar da isso?
|
Em frente ao edificio branco grande junto б praзa da DP.
Re: Problema ao spawnar. -
NikiFor - 16.02.2015
Mude as coordenadas para 0 (ponto central doi mapa de san andreas...
Re: Problema ao spawnar. -
Tugamars - 16.02.2015
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 0, 0, 0);
SetPlayerCameraPos(playerid, 0,0, 0);
SetPlayerCameraLookAt(playerid, 0, 0, 0);
return 1;
}
e
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,0,0, 0);
---------
E continua :S
Re: Problema ao spawnar. -
_Play_ - 16.02.2015
Faz tempo tive um problema assim pareзe que eu resolvi colocando AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); na OnGameModeInit.
Re: Problema ao spawnar. -
Tugamars - 16.02.2015
Obrigado Play .
Resolvido
Re: Problema ao spawnar. -
[BOPE]Seu._.Madruga - 17.02.2015
Ao inves de fazer assim:
PHP код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw7);
Poderia fazer assim.., No comeзo do GM:
PHP код:
new Text:Textdraw[8];
Em OnPlayerSpawn:
PHP код:
for(new i = 0; i < 7; i++) TextDrawShowForPlayer(playerid, Textdraw[i]);
Se tiver erros corrija-os pois estou pelo celular e foi apenas um exemplo.
Re: Problema ao spawnar. -
Tugamars - 17.02.2015
Quote:
Originally Posted by [BOPE]Seu._.Madruga
Ao inves de fazer assim:
PHP код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw7);
Poderia fazer assim.., No comeзo do GM:
PHP код:
new Text:Textdraw[8];
Em OnPlayerSpawn:
PHP код:
for(new i = 0; i < 7; i++) TextDrawShowForPlayer(playerid, Textdraw[i]);
Se tiver erros corrija-os pois estou pelo celular e foi apenas um exemplo.
|
Sim , podia , mas nгo tenho muita necessidade jб que й apenas um gm simples.