Hallöchen,
habe ein "kleines" Problem mit meinem Script. Jedes mal, wenn ich spawne, erscheint das "Stay within the world boundaries". Leider auf die unschöne Art. (http://imageshack.us/a/img231/9255/samp376hh.png (Nicht mein Screen, aber so änhlich sieht es aus.)) Ich habe alle Worldboundries raus gemacht. AddPlayerClass ist auch drin.
Spawn:
public OnPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(!strcmp(SpielerName(playerid),"botboy",true))
{
PutPlayerInVehicle(playerid,botzug,0);
//Frakbankladen();
}
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "stripper", true))
{
SetPlayerSkin(playerid,178);
}
if(!strcmp(npcname, "stripper2", true))
{
SetPlayerSkin(playerid,246);
}
if(!strcmp(npcname, "stripper3", true))
{
SetPlayerSkin(playerid,245);
}
if(!strcmp(npcname, "Jeff", true))
{
SetPlayerSkin(playerid,44);
}
return 1;
}
maske[playerid]=0;
RemovePlayerAttachedObject(playerid,9);
aufbrechen[playerid]=0;
RemovePlayerAttachedObject(playerid,1);
schildarmour[playerid]=0;
schildnutzung[playerid]=0;
lspdschild[playerid]=0;
bankraubzahl[playerid]=0;
playerinbank[playerid]=0;
SetPlayerColor(playerid,WEISS);
SetPlayerInterior(playerid,0);
SetCameraBehindPlayer(playerid);
if(GetPVarInt(playerid,"Aduty")==1)
{
SetPlayerColor(playerid,HELLROT);
}
SetPVarInt(playerid,"Skinauswahl",0);
SpielerSpeichern(playerid);
{
if(IsPlayerConnected(playerid))
{
if(!strcmp(SpielerName(playerid),"botboy",true))
{
PutPlayerInVehicle(playerid,botzug,0);
//Frakbankladen();
}
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "stripper", true))
{
SetPlayerSkin(playerid,178);
}
if(!strcmp(npcname, "stripper2", true))
{
SetPlayerSkin(playerid,246);
}
if(!strcmp(npcname, "stripper3", true))
{
SetPlayerSkin(playerid,245);
}
if(!strcmp(npcname, "Jeff", true))
{
SetPlayerSkin(playerid,44);
}
return 1;
}
maske[playerid]=0;
RemovePlayerAttachedObject(playerid,9);
aufbrechen[playerid]=0;
RemovePlayerAttachedObject(playerid,1);
schildarmour[playerid]=0;
schildnutzung[playerid]=0;
lspdschild[playerid]=0;
bankraubzahl[playerid]=0;
playerinbank[playerid]=0;
SetPlayerColor(playerid,WEISS);
SetPlayerInterior(playerid,0);
SetCameraBehindPlayer(playerid);
if(GetPVarInt(playerid,"Aduty")==1)
{
SetPlayerColor(playerid,HELLROT);
}
SetPVarInt(playerid,"Skinauswahl",0);
SpielerSpeichern(playerid);
//--skin beim spawn--//
new spawnskin;
spawnskin=GetPVarInt(playerid,"Skin");
SetPlayerSkin(playerid,spawnskin);
//--tazer reset--//
spawnskin=GetPVarInt(playerid,"Skin");
SetPlayerSkin(playerid,spawnskin);
//--tazer reset--//
SetPVarInt(playerid,"Tazerd",0);
SetPVarInt(playerid,"Tazerdtime",0);
SetPVarInt(playerid,"Tazerdtime",0);
//--duty reset--//
if(GetPVarInt(playerid,"Fraktion")>=0)
{
SetPVarInt(playerid,"LspdDuty",0);
SetPVarInt(playerid,"FsDuty",0);
SetPVarInt(playerid,"AdacDuty",0);
SetPVarInt(playerid,"TaxiDuty",0);
SetPVarInt(playerid,"SantDuty",0);
SetPVarInt(playerid,"MedicDuty",0);
SetPVarInt(playerid,"FeuerDuty",0);
SetPVarInt(playerid,"TruckDuty",0);
SpielerSpeichern(playerid);
lspddutys[playerid][0]=0;
lspddutys[playerid][1]=0;
lspddutys[playerid][2]=0;
lspddutys[playerid][3]=0;
lspddutys[playerid][4]=0;
}
{
SetPVarInt(playerid,"LspdDuty",0);
SetPVarInt(playerid,"FsDuty",0);
SetPVarInt(playerid,"AdacDuty",0);
SetPVarInt(playerid,"TaxiDuty",0);
SetPVarInt(playerid,"SantDuty",0);
SetPVarInt(playerid,"MedicDuty",0);
SetPVarInt(playerid,"FeuerDuty",0);
SetPVarInt(playerid,"TruckDuty",0);
SpielerSpeichern(playerid);
lspddutys[playerid][0]=0;
lspddutys[playerid][1]=0;
lspddutys[playerid][2]=0;
lspddutys[playerid][3]=0;
lspddutys[playerid][4]=0;
}
//--fraktions spawn--//
spawnbob(playerid);
if(friedhofzeit[playerid]!=0)
{
GameTextForPlayer(playerid, "~w~Willkommen auf dem ~r~Friedhof", 5000, 3);
SetPlayerPos(playerid,826.0681,-1102.9940,25.5938);
//SetPlayerWorldBounds(playerid, 951.9454, 807.0247, -1072.5609, -1130.1929);
SetPlayerSkin(playerid,212);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,270);
SetPlayerVirtualWorld(playerid,2);
ResetPlayerWeapons(playerid);
}
//--hitman--//
if(friedhofzeit[playerid]!=0)
{
GameTextForPlayer(playerid, "~w~Willkommen auf dem ~r~Friedhof", 5000, 3);
SetPlayerPos(playerid,826.0681,-1102.9940,25.5938);
//SetPlayerWorldBounds(playerid, 951.9454, 807.0247, -1072.5609, -1130.1929);
SetPlayerSkin(playerid,212);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,270);
SetPlayerVirtualWorld(playerid,2);
ResetPlayerWeapons(playerid);
}
//--hitman--//
if(GetPVarInt(playerid,"Hitfried")>0)
{
GameTextForPlayer(playerid, "~w~Willkommen auf dem ~r~Friedhof", 5000, 3);
SetPlayerPos(playerid,826.0681,-1102.9940,25.5938);
//SetPlayerWorldBounds(playerid, 951.9454, 807.0247, -1072.5609, -1130.1929);
SetPlayerSkin(playerid,212);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,270);
SetPlayerVirtualWorld(playerid,2);
ResetPlayerWeapons(playerid);
}
{
GameTextForPlayer(playerid, "~w~Willkommen auf dem ~r~Friedhof", 5000, 3);
SetPlayerPos(playerid,826.0681,-1102.9940,25.5938);
//SetPlayerWorldBounds(playerid, 951.9454, 807.0247, -1072.5609, -1130.1929);
SetPlayerSkin(playerid,212);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,270);
SetPlayerVirtualWorld(playerid,2);
ResetPlayerWeapons(playerid);
}
//--fort--//
if(GetPVarInt(playerid,"Fort")==1)
{
SendClientMessage(playerid, HELLROT,"Du hast deine Zeit im Fort De Morgan noch nicht abgesessen!");
SetPlayerSkin(playerid,167);
GameTextForPlayer(playerid, "~w~Willkommen im ~r~Fort De Morgan", 5000, 3);
SetPlayerPos(playerid, 107.2300,1920.6311,18.5208);
SetPlayerFacingAngle(playerid,270);
SetCameraBehindPlayer(playerid);
//SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
ResetPlayerWeapons(playerid);
}
{
SendClientMessage(playerid, HELLROT,"Du hast deine Zeit im Fort De Morgan noch nicht abgesessen!");
SetPlayerSkin(playerid,167);
GameTextForPlayer(playerid, "~w~Willkommen im ~r~Fort De Morgan", 5000, 3);
SetPlayerPos(playerid, 107.2300,1920.6311,18.5208);
SetPlayerFacingAngle(playerid,270);
SetCameraBehindPlayer(playerid);
//SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
ResetPlayerWeapons(playerid);
}
//--knast--//
if(GetPVarInt(playerid,"Knast")>0)
{
SendClientMessage(playerid, HELLROT,"Du hast deine Zeit im Knast noch nicht abgesessen!");
ResetPlayerWeapons(playerid);
GameTextForPlayer(playerid, "~w~Willkommen im ~r~Knast", 5000, 3);
SetPlayerPos(playerid,201.2311,168.2824,1003.0234);
SetPlayerFacingAngle(playerid,90);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,0);
}
{
SendClientMessage(playerid, HELLROT,"Du hast deine Zeit im Knast noch nicht abgesessen!");
ResetPlayerWeapons(playerid);
GameTextForPlayer(playerid, "~w~Willkommen im ~r~Knast", 5000, 3);
SetPlayerPos(playerid,201.2311,168.2824,1003.0234);
SetPlayerFacingAngle(playerid,90);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,0);
}
//--wanted--//
SetPlayerWantedLevel(playerid,GetPVarInt(playerid,"Wanteds"));
}
return 1;
}
}
return 1;
}
Hoffe jemand hat die Lösung.
Gruß,
Neo.