Sending stuff to other players - 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: Sending stuff to other players (
/showthread.php?tid=257080)
Sending stuff to other players -
iTzZh - 23.05.2011
*FIXED
Re: Sending stuff to other players - Deskoft - 23.05.2011
Are you using...
?
Maybe pasting the code here would help.
Re: Sending stuff to other players -
iTzZh - 24.05.2011
....
Re: Sending stuff to other players -
iTzZh - 30.05.2011
.....
Re: Sending stuff to other players -
Ernests - 30.05.2011
loggedin[MAX_PLAYERS]
loggedin(playerid) = 0;
Re: Sending stuff to other players -
iTzZh - 30.05.2011
.....
Re: Sending stuff to other players -
sim_sima - 30.05.2011
Quote:
Originally Posted by Ernests
loggedin[MAX_PLAYERS]
loggedin(playerid) = 0;
|
loggedin[playerid] = 0;
with the [] and not ()
Re: Sending stuff to other players -
Markx - 30.05.2011
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.