SA-MP Forums Archive
[Ajuda] Problema ao spawnar. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema ao spawnar. (/showthread.php?tid=563763)



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(playeridTextdraw0);
TextDrawShowForPlayer(playeridTextdraw1);
TextDrawShowForPlayer(playeridTextdraw2);
TextDrawShowForPlayer(playeridTextdraw3);
TextDrawShowForPlayer(playeridTextdraw4);
TextDrawShowForPlayer(playeridTextdraw5);
TextDrawShowForPlayer(playeridTextdraw7); 
Poderia fazer assim.., No comeзo do GM:
PHP код:
new Text:Textdraw[8]; 
Em OnPlayerSpawn:
PHP код:
for(new 07i++) TextDrawShowForPlayer(playeridTextdraw[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(playeridTextdraw0);
TextDrawShowForPlayer(playeridTextdraw1);
TextDrawShowForPlayer(playeridTextdraw2);
TextDrawShowForPlayer(playeridTextdraw3);
TextDrawShowForPlayer(playeridTextdraw4);
TextDrawShowForPlayer(playeridTextdraw5);
TextDrawShowForPlayer(playeridTextdraw7); 
Poderia fazer assim.., No comeзo do GM:
PHP код:
new Text:Textdraw[8]; 
Em OnPlayerSpawn:
PHP код:
for(new 07i++) TextDrawShowForPlayer(playeridTextdraw[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.