Posts: 348
Threads: 26
Joined: Oct 2012
Reputation:
0
Use TogglePlayerSpectating
Under OnPlayerConnect
TogglePlayerSpectating(playerid, 1);
Under OnPlayerSpawn
TogglePlayerSpectating(playerid, 0);
Posts: 687
Threads: 35
Joined: Oct 2014
Reputation:
0
Spawn the player once they connect, force them into spectating mode and from there on do your thing.
Posts: 333
Threads: 92
Joined: Dec 2014
Reputation:
0
ok. then i will try again.
Posts: 519
Threads: 59
Joined: May 2014
Reputation:
0
use SetSpawnInfo on OnPlayerRequestClass to if player connnect and want to go on Request Class Quickly spawn !
if use F4 For Go Will be spawn.
use wiki samp for more info about SetSpawnInfo !
Posts: 277
Threads: 40
Joined: Sep 2012
Reputation:
0
public OnPlayerRequestClass(playerid, classid)
{
SpawnPlayer(playerid);//Here skip this buttons
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
SetPlayerSkin(playerid,random(305));//Here when someone spawn, it will give him random skin from 0 to 305
return 1;
}
Posts: 1,114
Threads: 183
Joined: Apr 2012
Reputation:
0
OnPlayerConnect:
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
OnPlayerRequestClass
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);