[Pedido] Como retirar o botгo de "SPAWN". - 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: [Pedido] Como retirar o botгo de "SPAWN". (
/showthread.php?tid=529555)
Como retirar o botгo de "SPAWN". -
Marlon307 - 02.08.2014
Como eu retiro o botгo de spawn que na hora que o player conecta e tem esses botoes assim |<< |--| >>|--|SPAWN|
sem que afete a cвmera que ao conectar fica girando em volta do player.

Re: Como retirar o botгo de "SPAWN". -
zSuYaNw - 02.08.2014
Vo te dб um tiro.
https://www.******.com.br/webhp?sour...C3%A3o%20Spawn
--
https://sampforum.blast.hk/showthread.php?tid=285859
Respuesta: Como retirar o botгo de "SPAWN". -
Zume - 02.08.2014
Example.
pawn Код:
new g_Logged[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
SetTimerEx("SpawnPlayers", 250, 0, "d", playerid);
return 1;
}
forward SpawnPlayers(playerid);
public SpawnPlayers(playerid)
{
g_Logged[playerid] = 255;
SetSpawnInfo(playerid, 0, 298, 1815.2614,-1369.6233,15.0781-4.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid))
{
if(g_Logged[playerid] == 255)
{
g_Logged[playerid] = 0;
LoginShow(playerid);
}
else
{
if(//... no logged.
{
Kick(playerid);
return 1;
}
}
// MORE
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(!IsPlayerNPC(playerid))
{
if(// Logged variable in true
{
SpawnPlayer(playerid);
}
else
{
if(g_Logged[playerid] == 255)
{
g_Logged[playerid] = 0;
LoginShow(playerid);
}
}
}
else
{
SpawnPlayer(playerid);
}
return 1;
}
stock LoginShow(playerid)
{
TogglePlayerSpectating(playerid, 1);
// Camlook.. etc.
// Dialog login
return 1;
}
Re: Como retirar o botгo de "SPAWN". -
Marlon307 - 02.08.2014
Quote:
Originally Posted by zSuYaNw
|
Porque??
Re: Como retirar o botгo de "SPAWN". -
ViniBorn - 02.08.2014
Quote:
Originally Posted by Marlon307
Porque??
|
Era sу usar o search...
http://forum.sa-mp.com/showpost.php?...1&postcount=16
Re: Como retirar o botгo de "SPAWN". -
Dieguinho - 02.08.2014
https://sampwiki.blast.hk/wiki/TogglePlayerSpectating
Deixe 'true' para que 'remova' a barra, quando o player for spawnar ou jб estiver logado 'false', caso contrбrio, ele ficara bugado!
https://sampforum.blast.hk/showthread.php?tid=355050