[Ajuda] Request Class - 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] Request Class (
/showthread.php?tid=560867)
Request Class -
biell - 30.01.2015
quero que a request class nгo seja chamada, para nгo aparecer
<<<<<<<< >>>>>>>> SPAWN
gostaria que spawnasse automaticamente, e mesmo colocando a funзгo SpawnPlayer(playerid); continua aparecento :/
Agradeзo
Re: [Duvida]Request Class -
ZeZin - 30.01.2015
Coloque return 0 e tente.
Re: [Duvida]Request Class -
View - 31.01.2015
pawn Код:
public OnPlayerRequestClass(playerid, classid) {
SpawnPlayer(playerid);
return 1;
}
Re: [Duvida]Request Class -
biell - 01.02.2015
Nenhum, porйm com o return 0 o spawn n funciona, Sendo assim coloco a Dialog de login la, Obrigado aos 2
Re: [Duvida]Request Class -
GustMF - 01.02.2015
pawn Код:
public OnPlayerRequestClass(playerid)
{
SetSpawnInfo(playerid, 0, 0, x, y, z, a, 0, 0, 0, 0, 0, 0); // Troque x, y, z por qualquer coordenada.
SpawnPlayer(playerid);
}
Re: [Duvida]Request Class -
ipsLuan - 01.02.2015
Quote:
Originally Posted by GustMF
pawn Код:
public OnPlayerRequestSpawn(playerid) { SetSpawnInfo(playerid, 0, 0, x, y, z, a, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); }
|
Deste modo esta errado.
Re: [Duvida]Request Class -
GustMF - 01.02.2015
Quote:
Quote:
Originally Posted by GustMF View Post
pawn Code:
public OnPlayerRequestSpawn(playerid)
{
SetSpawnInfo(playerid, 0, 0, x, y, z, a, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
|
Deste modo esta errado.
|
Esqueci que tinha duas funзхes de OnPlayerRequest -.-
Obrigado por falar ^^
Editei o cуdigo.
Re: [Duvida]Request Class -
Yerdlaw - 01.02.2015
Simples assim
pawn Код:
public OnPlayerRequestClass(playerid, classid) {
SetTimer("Spawn", 100, false);
return 1;
}
Depois faзa
forward e
public para executar o spawn automatico
pawn Код:
forward Spawn(playerid);
public Spawn(playerid) {
SetSpawnInfo(playerid,0,0,1724.0027,-1704.1826,13.5000,215.9779,0,0,0,0,0,0);
SpawnPlayer(playerid);
return 1;
}