SA-MP Forums Archive
OnPlayerConnect Help - 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: OnPlayerConnect Help (/showthread.php?tid=112292)



OnPlayerConnect Help - Naruto4 - 06.12.2009

I want to make like this :
Код:
if(AccountInfo[TARGETID][aEE] == 1) 
{
new string2[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string2,sizeof string2,"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string2);
}
i have command to put "EE" to 1 & 0.
But when it is on 1 it doesnt show me that player joined.. neiter on 0

i have all data function and added ee.


Re: OnPlayerConnect Help - LarzI - 06.12.2009

show us the accountinfo var + enum(s), please


Re: OnPlayerConnect Help - Martin_M - 06.12.2009

Quote:
Originally Posted by Naruto4
I want to make like this :
Код:
if(AccountInfo[TARGETID][aEE] == 1) 
{
new string2[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string2,sizeof string2,"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string2);
}
i have command to put "EE" to 1 & 0.
But when it is on 1 it doesnt show me that player joined.. neiter on 0

i have all data function and added ee.
Consider.. You use aEE variable, but you say that you have to change EE..


Re: OnPlayerConnect Help - Naruto4 - 06.12.2009

Код:
enum aInfo
{
    aPassword[128],
    aLogged,
    aEE,
    aAdmin,
    aFaction,
};
new AccountInfo[MAX_PLAYERS][aInfo];



Re: OnPlayerConnect Help - Martin_M - 06.12.2009

-


Re: OnPlayerConnect Help - Martin_M - 06.12.2009

Quote:
Originally Posted by Martin_M
Код:
if(AccountInfo[playerid][aEE] == 1) 
{
new string2[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(string2,sizeof(string2),"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string2);
return 1;
}



Re: OnPlayerConnect Help - LarzI - 06.12.2009

sorry, but Martin_M, wth are you up to? :S -.-


Re: OnPlayerConnect Help - Martin_M - 06.12.2009

Quote:
Originally Posted by lrZ^ aka LarzI
sorry, but Martin_M, wth are you up to? :S -.-
There was my mistake. I'm confusing now a little bit and through negligence i make double post. Sorry.


Re: OnPlayerConnect Help - LarzI - 06.12.2009

oh, ok xP