OnplayerRequestClass [+REP]
#1

Hello everybody i got a server from forum. thanks for the serve.
But i want to delete dhat Onplayerrequestclass
PHP код:
<   >   Spawn 
I want to delete this.
I deleted onplayerrequestclass and addplayerclass in OnGameModeInit.

Hellp mee pease.
Reply
#2

pawn Код:
TogglePlayerSpectating(playerid, false);
Reply
#3

Where to add this ?
Reply
#4

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
   TogglePlayerSpectating(playerid, false);
   return 1;
}
+REP please
Reply
#5

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

Still not work for mee -.-
Reply
#7

Try use TogglePlayerSpectating in OnPlayerConnect
Reply
#8

He dont hide it Please help mee
Reply
#9

pawn Код:
SetTimerEx("NoSpawnBoutton", 100, false, "i", playerid);
Try this
Reply
#10

Ok i mode it to
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetSpawnInfo(playerid000030000000);
    
TogglePlayerSpectating(playeridtrue);
    
//SpawnPlayer(playerid);
    
SetTimerEx("NoSpawnBoutton"100false"i"playerid);
    return 
1;
}
forward NoSpawnBoutton(playerid);
public 
NoSpawnBoutton(playerid)
{
    
//SpawnPlayer(playerid);
    
TogglePlayerSpectating(playeridfalse);
    return 
1;

Because i dont want to spawn but he spawn mee automaticly.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)