Posts: 871
Threads: 114
Joined: May 2014
Hello everybody i got a server from forum. thanks for the serve.
But i want to delete dhat Onplayerrequestclass
I want to delete this.
I deleted onplayerrequestclass and addplayerclass in OnGameModeInit.
Hellp mee pease.
Posts: 1,241
Threads: 67
Joined: Dec 2013
pawn Код:
TogglePlayerSpectating(playerid, false);
Posts: 871
Threads: 114
Joined: May 2014
Posts: 28
Threads: 3
Joined: May 2013
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, false);
return 1;
}
+REP please
Posts: 1,241
Threads: 67
Joined: Dec 2013
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
TogglePlayerSpectating(playerid, true);
SpawnPlayer(playerid);
SetTimerEx("NoSpawnBoutton", 500, false, "i", playerid);
return 1;
}
forward NoSpawnBoutton(playerid);
public NoSpawnBouttontClass(playerid)
{
SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, false);
return 1;
}
Posts: 871
Threads: 114
Joined: May 2014
Still not work for mee -.-
Posts: 5,314
Threads: 12
Joined: Aug 2010
Reputation:
0
Try use TogglePlayerSpectating in OnPlayerConnect
Posts: 871
Threads: 114
Joined: May 2014
He dont hide it
Please help mee
Posts: 1,241
Threads: 67
Joined: Dec 2013
pawn Код:
SetTimerEx("NoSpawnBoutton", 100, false, "i", playerid);
Try this
Posts: 871
Threads: 114
Joined: May 2014
Ok i mode it to
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
TogglePlayerSpectating(playerid, true);
//SpawnPlayer(playerid);
SetTimerEx("NoSpawnBoutton", 100, false, "i", playerid);
return 1;
}
forward NoSpawnBoutton(playerid);
public NoSpawnBoutton(playerid)
{
//SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, false);
return 1;
}
Because i dont want to spawn but he spawn mee automaticly.