RRGangstertje Geplaatst: 9 december 2009 Rapport Geplaatst: 9 december 2009 (bewerkt) Kijk. ik heb een probleem sinds 0.3a er is. ik spawn in de lucht, en ergens in LS. terwijl het een PEN SF script is. Dit is mijn onplayerspawn. ik denk dat daar het probleem ligt: public OnPlayerSpawn(playerid) { /* CreateMapIcon( 56, 0, -1520.6923,1452.9288,3.3827); //island2 CreateMapIcon( 56, 0, -2066.6128,1715.5884,5.3586); // island1 CreateMapIcon( 56, 0, -2159.2866,1780.5558,4.6454); // island1 CreateMapIcon( 56, 0, -2080.6829,1850.5492,4.6733); // island1 */ if(jailed2[playerid] == 1) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,197.72,175.06,1003.02); jailed2[playerid] = 1; return 1; } 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~/register (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,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 (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][pRank] < 1) { gTeam[playerid] = 3; PlayerInfo[playerid][pTeam] = 3; SetPlayerRandomSpawn(playerid); SendClientMessage(playerid, COLOR_BLUE, "You Require a Badge to be on the Force"); SendClientMessage(playerid, COLOR_WHITE, "Visit www.roleplayandstunt.nl"); SendClientMessage(playerid, COLOR_WHITE, "Apply And Join the San Fierro Police Dept!"); } 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_COPS_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_COPS_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_COPS_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_COPS_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; } Kan iemand dit fixen? want dan zijn de huizen ook weer fixd Bewerkt: 9 december 2009 door RRGangstertje Reageren
Wanted Geplaatst: 9 december 2009 Rapport Geplaatst: 9 december 2009 Kijk. ik heb een probleem sinds 0.3a er is. ik spawn in de lucht, en ergens in LS. terwijl het een PEN SF script is. Dit is mijn onplayerspawn. ik denk dat daar het probleem ligt: Kan iemand dit fixen? want dan zijn de huizen ook weer fixd In deze spoiler hieronder heb ik 3 regels vetgedrukt en groot gemaakt. Hiermee verplaats je de coordinaten van een speler. Het 3e getal is de hoogte. Deze is dus onderstreept. Je ziet dat dit getal altijd boven de 1000 ligt. Daar zit dus je probleem. Om het op te lossen zul je de positie opnieuw op moeten slaan en opnieuw invoeren, of het laatste getal verlagen. public OnPlayerSpawn(playerid) { /* CreateMapIcon( 56, 0, -1520.6923,1452.9288,3.3827); //island2 CreateMapIcon( 56, 0, -2066.6128,1715.5884,5.3586); // island1 CreateMapIcon( 56, 0, -2159.2866,1780.5558,4.6454); // island1 CreateMapIcon( 56, 0, -2080.6829,1850.5492,4.6733); // island1 */ if(jailed2[playerid] == 1) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,197.72,175.06,1003.02); jailed2[playerid] = 1; return 1; } 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~/register (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,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 (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][pRank] < 1) { gTeam[playerid] = 3; PlayerInfo[playerid][pTeam] = 3; SetPlayerRandomSpawn(playerid); SendClientMessage(playerid, COLOR_BLUE, "You Require a Badge to be on the Force"); SendClientMessage(playerid, COLOR_WHITE, "Visit www.roleplayandstunt.nl"); SendClientMessage(playerid, COLOR_WHITE, "Apply And Join the San Fierro Police Dept!"); } 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]; } } // Rest van de code return 1; } (Tabs worden niet goed weergegeven in spoilers, dus niet op letten). MVG, Wanted Reageren
Big Boss Geplaatst: 9 december 2009 Rapport Geplaatst: 9 december 2009 En wat je natuurlijk niet ziet zijn de regels die er steeds boven staan; SetPlayerInterior(playerid, 3); Naar mijn weten liggen alle interiors nog altijd op zo'n 1000 z-hoogte. Reageren
Wanted Geplaatst: 9 december 2009 Rapport Geplaatst: 9 december 2009 En wat je natuurlijk niet ziet zijn de regels die er steeds boven staan; SetPlayerInterior(playerid, 3); Naar mijn weten liggen alle interiors nog altijd op zo'n 1000 z-hoogte. Oeps, inderdaad niet gezien. :$ Het is ook zo'n lang stukje script wat gegeven is. Reageren
RRGangstertje Geplaatst: 10 december 2009 Auteur Rapport Geplaatst: 10 december 2009 Kijk, dit begrijp ik allemaal wel. maar k spawn in LS en alles is grijs om me heen. en het is een SF script. Reageren
Recommended Posts
Een reactie plaatsen
Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.