OnPlayerRequestClass
#1

Is there any way to delete "OnPlayerRequestClass"??
I don't want that message '{<<} {>>} {SPAWN}' ever appear in game.
Help please , thanks
Reply
#2

Код:
public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, 1);
    return 1;
}
Reply
#3

Didn't work and gave me that :

Reply
#4

Didn't Work and gave me that :

Reply
#5

SpawnPlayer(playerid);

Put that on player request class.
Reply
#6

with
TogglePlayerSpectating(playerid, 1); ??
or it alone??
Reply
#7

I put it alone and with:
TogglePlayerSpectating(playerid, 1);
still same proplem (
Reply
#8

You want to spawn player immediately when he connects or what?
Reply
#9

this will work ,

PHP код:
forward Spawn(playerid);
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetTimerEx("Spawn"10false"i"playerid);
    return 
1;
}
public 
Spawn(playerid)
{
    
SpawnPlayer(playerid);

Good luck
Reply
#10

Actually, this will work just fine.
pawn Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, true);
    TogglePlayerSpectating(playerid, false);
    return 1;
}

public OnPlayerRequestClass(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)