public OnPlayerSpawn(playerid)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
if(IsPlayerNPC(playerid)) return 1;
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
Kick(playerid);
}
&& IsPlayerNPC(playerid)
if(gPlayerLogged[playerid] == 0)
if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid))
if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return gPlayerLogged[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
Kick(playerid);
}
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return gPlayerLogged[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
Kick(playerid);
}
pawn Код:
pawn Код:
|
public OnPlayerConnect(playerid)
{
// all saints hostpital
RemoveBuildingForPlayer(playerid, 1410, 2487.3984, -1688.1016, 13.2813, 0.25);
RemoveBuildingForPlayer(player
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return gPlayerLogged[playerid] = 1;
return 1;
}
// all saints hostpital
RemoveBuildingForPlayer(playerid, 1410, 2487.3984, -1688.1016, 13.2813, 0.25);
RemoveBuildingForPlayer(player
public OnPlayerSpawn(playerid)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
Kick(playerid);
}
return 1;
}