First Spawn
#1

The first time I try to spawn (/login) nothing happens, I have to /logout (not close game, it is a command I made) and try again, and it works that time, I am using TogglePlayerSpectating.

Help would be nice.
Reply
#2

Without a script, noone can help you.
Reply
#3

Loads of people can help me, and besides I don't have the script.

so yah, if the server bounces it works on the first try, it is only the first time of the player after loading the client.
Reply
#4

ermm

Код:
public OnPlayerConnect(playerid)
{
 logged[playerid] == 0;
return 1;
}
Something like that?
Reply
#5

Quote:
Originally Posted by VonLeeuwen
ermm

Код:
public OnPlayerConnect(playerid)
{
 logged[playerid] == 0;
return 1;
}
Something like that?
That doesn't even have sence, should of be:
pawn Код:
logged[playerid] = 0;
Quote:
Originally Posted by VonLeeuwen
Without a script, noone can help you.
We can but it's more difficult for us...
Reply
#6

pawn Код:
new PlayerLogged[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    PlayerLogged[playerid] = 0;
    return 1;
}

public OnPlayerLogin(playerid, password[]) // this is what ever you login function is.
{
    if(IsPlayerConnected(playerid) && PlayerLogged[playerid] == 0)
    {
        //Rest of your command herre....
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by Daren_Jacobson
and besides I don't have the script..
Then we can't help you. How are you supposed to fix it without a script? Think twice before you ask for help.
Reply
#8

Okay, you guys are going in the complete wrong direction with this.

1) I do not have the script because I am booted to mac not windows.

2) What in the script would be needed? I told you that I am using TogglePlayerSpectating, and I also know it is not a script problem rather a problem that I am not fixing a bug with the CLIENT.

3) This PlayerLogged junk is not needed.

4) I thought about this ~forty times, what made you think I didn't even think twice?
Reply
#9

Still not getting anywhere with this ><
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)