How to Remove ''<<'' ,''>>'' , ''Spawn'' -
bathushan - 26.01.2013
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...
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
JaKe Elite - 26.01.2013
use TogglePlayerSpecating OnPlayerRequestClass.
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
IgrexolonO - 26.01.2013
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.
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
bathushan - 26.01.2013
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 ?
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
Da_Noob - 26.01.2013
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, false);
return 1;
}
I think this will fix it, or else try to return 0.
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
IgrexolonO - 26.01.2013
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;
}
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
bathushan - 26.01.2013
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 ?
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
IgrexolonO - 26.01.2013
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.
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
SilverKiller - 26.01.2013
Use SpawnPlayer in request class.
Re: How to Remove ''<<'' ,''>>'' , ''Spawn'' -
IgrexolonO - 26.01.2013
To SpawnPlayer, you also have to set his SetSpawnInfo. So I suggest adding
https://sampwiki.blast.hk/wiki/SetSpawnInfo function before SpawnPlayer.