[Ajuda] Request Class
#1

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
Reply
#2

Coloque return 0 e tente.
Reply
#3

pawn Код:
public OnPlayerRequestClass(playerid, classid) {
SpawnPlayer(playerid);
return 1;
}
Reply
#4

Nenhum, porйm com o return 0 o spawn n funciona, Sendo assim coloco a Dialog de login la, Obrigado aos 2
Reply
#5

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);
}
Reply
#6

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.
Reply
#7

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.
Reply
#8

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)