SetPlayerInterior(playerid, 0);
public OnPlayerSpawn(playerid) { if (gdebug >=1){printf("OnPlayerSpawn Playerid:%d", playerid);} if (teamcarlock) { TeamLockDoors(playerid); } InitLockDoors(playerid); if(accountplay) { if (gdebug >=1){printf("accountplay");} if (gPlayerAccount[playerid] == 0) { gTeam[playerid] = 0; GameTextForPlayer(playerid, "~w~Welcome.~n~In order to play you need to create an account, type ~n~~r~/regnick (password)~w~ to register", 20000, 3); //SetPlayerInterior(playerid,0); SetPlayerInterior(playerid,3); PlayerInfo[playerid][pInt] = 3; SetPlayerPos(playerid,198.5,162.5,1003.0); // airport PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000); gPlayerSpawned[playerid] = 1; return 1; } if (gPlayerLogged[playerid] == 0) { gTeam[playerid] = 0; GameTextForPlayer(playerid, "~w~In order to play you need to log in to your account, type ~n~~g~/login (password)~w~ to log in", 20000, 3); //SetPlayerInterior(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,198.5,162.5,1003.0); // airport PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000); gPlayerSpawned[playerid] = 1; return 1; } } if (gPlayerSpawned[playerid] == 0) { gTeam[playerid] = PlayerInfo[playerid][pTeam]; if (gTeam[playerid] == 2 && forceteam && CopCheck(playerid)) { gTeam[playerid] = 3; PlayerInfo[playerid][pTeam] = 3; SetPlayerRandomSpawn(playerid); SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your are not allowed to be a cop."); } /* if(gTeam[playerid] == 2 && PlayerInfo[playerid][pLevel] < 3) { gTeam[playerid] = 3; PlayerInfo[playerid][pTeam] = 3; SetPlayerRandomSpawn(playerid); SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You must be level 3 to join the cops."); } */ if (gTeam[playerid] == 1 && forceteam && MedCheck(playerid)) { gTeam[playerid] = 3; PlayerInfo[playerid][pTeam] = 3; SetPlayerRandomSpawn(playerid); SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your are not allowed to be a paramedic."); } if (gTeam[playerid] == 4) //medic / criminal reset team { gTeam[playerid] = PlayerInfo[playerid][pTeam]; } /* if (FirstSpawn[playerid] == 0) { SetPlayerToTeamColor(playerid); SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]); printf("PlayerInfo[playerid][pInt]= %d",PlayerInfo[playerid][pInt]); SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]); gPlayerSpawned[playerid] = 1; FirstSpawn[playerid] = 1; print("insidespawn or firstsawpn"); return 1; } */ SetPlayerRandomSpawn(playerid); if (gdebug){printf("DEBUG id = %d gTeam = %d",playerid,gTeam[playerid]);} //SetPlayerPos(playerid, 1360.0217,2565.6328,10.8265);///badspawn //SetPlayerWorldBounds(playerid,3500.00,66.67,-653.33,-2806.67); /* switch (MissionActive) { case 1://Cashbox not picked up { if ((gTeam[playerid]) == 1) { SendClientMessage(playerid, COLOR_YELLOW, objstore); gPlayerCheckpointStatus[playerid] = CHECKPOINT_PICKUP; } else if (gTeam[playerid] == 2) { SendClientMessage(playerid, TEAM_BLUE_COLOR, cbjstore); } SetPlayerCheckpoint(playerid,cwx, cwy, cwz, 1.0); } case 2://Cashbox picked up firsttime { if ((gTeam[playerid]) == 1) { SendClientMessage(playerid, COLOR_YELLOW, objstore); gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE; } else if (gTeam[playerid] == 2) { SendClientMessage(playerid, TEAM_BLUE_COLOR, cbjstore); } SetPlayerCheckpoint(playerid,cwx, cwy, cwz, 1.0); } case 3://Cashbox was dropped { SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 1.0); gPlayerCheckpointStatus[playerid] = CHECKPOINT_PICKUP; return 1; } case 5://racewait { if (gdebug){print("DEBUG Checkp5");} if ((gTeam[playerid]) == 1) { gPlayerCheckpointStatus[playerid] = CHECKPOINT_SR1START; } SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 8.0); return 1; } case 6://racewait { if (gdebug){print("DEBUG Checkp5");} if ((gTeam[playerid]) == 1 || (gTeam[playerid]) == 3) { gPlayerCheckpointStatus[playerid] = CHECKPOINT_SRA; } SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 8.0); return 1; } case 7://progress { if (gdebug){print("DEBUG Checkp5");} if ((gTeam[playerid]) == 1) { gPlayerCheckpointStatus[playerid] = CHECKPOINT_SRA; SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 8.0); } if ((gTeam[playerid]) == 2 ) { gPlayerCheckpointStatus[playerid] = CHECKPOINT_SR1START; SetPlayerCheckpoint(playerid,scx,scy,scz, 8.0); } return 1; } case 9://Car is waiting first occupent { if (gTeam[playerid] == 1) { SendClientMessage(playerid, COLOR_YELLOW, objstore); SetVehicleParamsForPlayer(stealcar,playerid,1,0); } else if (gTeam[playerid] == 2) { SendClientMessage(playerid, TEAM_BLUE_COLOR, cbjstore); SetVehicleParamsForPlayer(stealcar,playerid,1,1); } } case 10://Car has been takin by Criminal { if (gTeam[playerid] == 1) { SendClientMessage(playerid, COLOR_YELLOW, objstore); } else if (gTeam[playerid] == 2) { SendClientMessage(playerid, TEAM_BLUE_COLOR, cbjstore); } SetPlayerCheckpoint(playerid, cwx, cwy, cwz, 16.0); SetVehicleParamsForPlayer(stealcar,playerid,1,0); } case 101://Car is empty but was takin { SetVehicleParamsForPlayer(stealcar,playerid,1,0); } default: { } } */ } return 1; }
if (gPlayerLogged[playerid] == 0)
{
gTeam[playerid] = 0;
GameTextForPlayer(playerid, "~w~In order to play you need to log in to your account, type ~n~~g~/login (password)~w~ to log in", 20000, 3);
//SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,198.5,162.5,1003.0);
// airport
PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000);
gPlayerSpawned[playerid] = 1;
return 1;
}
//SetPlayerInterior(playerid,0);
public OnPlayerRequestSpawn(playerid)
Originally Posted by GroX
Put SetPlayerInterior(playerid,0); at:
Код:
public OnPlayerRequestSpawn(playerid) |
Originally Posted by Damn Right M.I.A!
Checked it again,
pawn Код:
pawn Код:
// ? remove that? |