Sending stuff to other players
#1

*FIXED
Reply
#2

Are you using...
pawn Код:
SendClientMessageToAll()
?
Maybe pasting the code here would help.
Reply
#3

....
Reply
#4

.....
Reply
#5

loggedin[MAX_PLAYERS]

loggedin(playerid) = 0;
Reply
#6

.....
Reply
#7

Quote:
Originally Posted by Ernests
Посмотреть сообщение
loggedin[MAX_PLAYERS]

loggedin(playerid) = 0;
loggedin[playerid] = 0;
with the [] and not ()
Reply
#8

Top:
pawn Код:
gPlayerLogged[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
    gPlayerLogged = 0;
    ClearChat(playerid);
    new Username[MAX_PLAYER_NAME], File[256];
    GetPlayerName(playerid, Username, sizeof(Username));
    format(File, sizeof(File), "Players/%s.ini", Username);
    TogglePlayerSpectating(playerid, 1);
    PlayerInfo[playerid][SpecCheck] = 1;
    if (gPlayerLogged == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to Nexus Roleplay. Please type in the password you would like for your account.");
        ShowPlayerDialog(playerid, RegistrationDialog, DIALOG_STYLE_INPUT, "Register", "Type your password", "Login", "Cancel");
    }
    else if (fexist(File))
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome back to Nexus Roleplay. Please enter your password to login.");
        ShowPlayerDialog(playerid, LoginDialog, DIALOG_STYLE_INPUT, "Login", "Type your password", "Login", "Cancel");
    }
    for(new i = 0; i < 47; i++)
    {
        Weapons[playerid][i] = false;
    }
    PlayerInfo[playerid][OnlineStatus] = 0;
    ResetPlayerCash(playerid);
    return 1;
}
put gPlayerLogged = 1; on your dialog login/register responce

Warning: not tested.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)