SA-MP Forums Archive
First Spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: First Spawn (/showthread.php?tid=128993)



First Spawn - Daren_Jacobson - 20.02.2010

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.


Re: First Spawn - VonLeeuwen - 20.02.2010

Without a script, noone can help you.


Re: First Spawn - Daren_Jacobson - 20.02.2010

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.


Re: First Spawn - VonLeeuwen - 20.02.2010

ermm

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


Re: First Spawn - Miguel - 20.02.2010

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...


Re: First Spawn - DiMeNsIoN© - 20.02.2010

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;
}



Re: First Spawn - HB - 20.02.2010

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.


Re: First Spawn - Daren_Jacobson - 20.02.2010

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?


Re: First Spawn - Daren_Jacobson - 22.02.2010

Still not getting anywhere with this ><