How to Remove ''<<'' ,''>>'' , ''Spawn''
#1

Well i'm Just learing Scripting.

and i'm trying to Create a Own script / GM...

On my Server After Login. that Shows

'<<' '>>' 'Spawn'
How to remove it ?


I hope you Got what i mean...
Reply
#2

use TogglePlayerSpecating OnPlayerRequestClass.
Reply
#3

OnPlayerConnect:

Код:
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
	SpawnPlayer(playerid);
	TogglePlayerSpectating(playerid, true);
When player logs in TogglePlayerSpectating to false.
Reply
#4

Quote:
Originally Posted by IgrexolonO
Посмотреть сообщение
OnPlayerConnect:

Код:
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
	SpawnPlayer(playerid);
	TogglePlayerSpectating(playerid, true);
When player logs in TogglePlayerSpectating to false.
I add this and compie my GM. and run the server.
I Give the pass and login.

Then nothing happend.?!!!??
i mean that Not showing ''<<'' ''>>'' ''Spawn'' anymore

But the same time the player is not spawning. it just show that login background! nothing more!! ?

How to spawn player then ?
Reply
#5

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, false);
    return 1;
}
I think this will fix it, or else try to return 0.
Reply
#6

When player logs in TogglePlayerSpectating to false. << Have you added this thing?

also as Da_Noob said ^ but change his version into:

Код:
public OnPlayerRequestClass(playerid, classid)
{
	return 0;
}
Reply
#7

I tried with False and true.
When i use with false. the players tp to the place where he left but he is not spawning....
When i use true the player tp to Blueberry but not spawning.

Help me ?
Reply
#8

SetSpawnInfo - you have to choose a player spawn position. The code I have send you is only spawning player when he connects, It's putting him to "lobby" where he see a way near LV. When the player logs in, you should use TogglePlayerSpectating(playerid, false); and also set his position, skin, and other things.
Reply
#9

Use SpawnPlayer in request class.
Reply
#10

To SpawnPlayer, you also have to set his SetSpawnInfo. So I suggest adding https://sampwiki.blast.hk/wiki/SetSpawnInfo function before SpawnPlayer.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)