Hallo ich bin neu hier und hab schon eine frage.
wen jemand auf meinem server ist und ich connecte und spawn dann, spawnen alle zum anfang wieso? (ist nicht nur bei mir so)
die spawn zeile ist
dies:
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid,"Online")==0)
{
SetPVarInt(playerid,"Online",1);
SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin"));
if(GetPVarInt(playerid,"TOT")==1)
{
switch(GetPVarInt(playerid,"Fraktion"))
{
case 1:{SetPlayerPos(playerid,-2655.5366,639.4964,14.4531);SetPlayerSkin(playerid,113);SetPlayerArmour(playerid,100);GivePlayerWeapon(playerid,24,9999);GivePlayerWeapon(playerid,29,99999);GivePlayerWeapon(playerid,30,99999);SetPVarInt(playerid,"TOT",0);}
case 2:{SetPlayerPos(playerid,-2655.5366,639.4964,14.4531);SetPVarInt(playerid,"TOT",0);}
case 3:{SetPlayerPos(playerid,-2655.5366,639.4964,14.4531);SetPVarInt(playerid,"TOT",0);}
case 4:{SetPlayerPos(playerid,-2655.5366,639.4964,14.4531);SetPVarInt(playerid,"TOT",0);}
}
}
else
{
if(GetPVarInt(playerid,"Haus")==1)
{
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{SetPlayerPos(playerid,GetPVarFloat(playerid,"player_x"),GetPVarFloat(playerid,"player_y"),GetPVarFloat(playerid,"player_z"));}
case 1:{SetPlayerPos(playerid,GetPVarFloat(playerid,"player_x"),GetPVarFloat(playerid,"player_y"),GetPVarFloat(playerid,"player_z"));SetPlayerSkin(playerid,113);SetPlayerArmour(playerid,100);GivePlayerWeapon(playerid,24,9999);GivePlayerWeapon(playerid,29,99999);GivePlayerWeapon(playerid,30,99999);}
case 2:{SetPlayerPos(playerid,GetPVarFloat(playerid,"player_x"),GetPVarFloat(playerid,"player_y"),GetPVarFloat(playerid,"player_z"));}
case 3:{SetPlayerPos(playerid,GetPVarFloat(playerid,"player_x"),GetPVarFloat(playerid,"player_y"),GetPVarFloat(playerid,"player_z"));}
case 4:{SetPlayerPos(playerid,GetPVarFloat(playerid,"player_x"),GetPVarFloat(playerid,"player_y"),GetPVarFloat(playerid,"player_z"));}
}
}
else
{
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{}
case 1:{SetPlayerPos(playerid,mafiaspawn);SetPlayerSkin(playerid,113);SetPlayerArmour(playerid,100);GivePlayerWeapon(playerid,24,9999);GivePlayerWeapon(playerid,29,99999);GivePlayerWeapon(playerid,30,99999);}
case 2:{SetPlayerInterior(playerid,10);SetPlayerPos(playerid,sfpdspawn);}
case 3:{SetPlayerPos(playerid,medicspawn);}
case 4:{SetPlayerInterior(playerid,10);SetPlayerPos(playerid,swatspawn);}
//SetPlayerColor(playerid,BLAU);SetPlayerSkin(playerid,281);SetPlayerArmour(playerid,100);GivePlayerWeapon(playerid,22,99999);GivePlayerWeapon(playerid,3,1);GivePlayerWeapon(playerid,25,99999);
}
}
}
}
else
{
return 1;
}
return 1;
}
das ist alles selbst geschrieben.
kann mir einer helfen möglichst schnell bitte.
danke schon mal im vorraus.