21.10.2010, 22:34
Hi all,
first sry for bad english :P
It is a long time since I scripted.
I've just started again with my old self-made script.
Now I have the problem with the Spawn ....
As soon as I logged in myself I must press the spawn button, and spawn as soon as I've made the screen is white and it stands Loading ...


This is my OnPlayerSpawn...
I hope someone can help, is very important!
Looking forward to any help.
Thanks
first sry for bad english :P
It is a long time since I scripted.
I've just started again with my old self-made script.
Now I have the problem with the Spawn ....
As soon as I logged in myself I must press the spawn button, and spawn as soon as I've made the screen is white and it stands Loading ...


This is my OnPlayerSpawn...
PHP код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid,BankGeld[playerid]);
TextDrawShowForPlayer(playerid,LSRURL);
TextDrawShowForPlayer(playerid,EcKarte);
if(gSpielerEingeloggt[playerid] == 0)
{
SendClientMessage(playerid,FARBE_GELB,"*** Es wir ein Login vor dem Spawnen benцtigt! ***");
Kick(playerid);
return 1;
}
if(SpielerInfo[playerid][pTutorial] == 0)
{
SetPlayerPos(playerid,1419.5648,-871.4538,48.7171);
SetPlayerCameraPos(playerid,1424.4377,-853.0256,49.1286);
SetPlayerCameraLookAt(playerid,1413.6162,-807.9249,85.0693);
TogglePlayerControllable(playerid,0);
tFlieger = CreatePlayerObject(playerid,1683, -1256.219604, -165.057495, 19.051064, 0.0000, 0.0000, 136.5464);
SetTimerEx("Tutorial", 1000, 0, "d", playerid);
return 1;
}
if(SpielerInfo[playerid][pHaus] == 0)
{
if(SpielerInfo[playerid][pId] == 1000)
{
if(SpielerInfo[playerid][pLeader] == 1 || SpielerInfo[playerid][pMember] == 1) CopSpawn(playerid);
if(SpielerInfo[playerid][pLeader] == 2 || SpielerInfo[playerid][pMember] == 2) TaxiSpawn(playerid);
if(SpielerInfo[playerid][pLeader] == 3 || SpielerInfo[playerid][pMember] == 3) MedicSpawn(playerid);
else
SetPlayerPos(playerid,1969.2786,-2176.0940,13.5469);
return 1;
}
}
else
{
if(SpielerInfo[playerid][pId] == 1)
{
SetPlayerPos(playerid,1642.3235,-2204.3228,13.5469);
return 1;
}
else if(SpielerInfo[playerid][pId] == 2)
{
SetPlayerPos(playerid,1685.7727,-2204.3157,13.5469);
return 1;
}
else if(SpielerInfo[playerid][pId] == 3)
{
SetPlayerPos(playerid,1730.5632,-2204.1628,13.5469);
return 1;
}
}
SetPlayerSkin(playerid,SpielerInfo[playerid][pSkin]);
return 1;
}
Looking forward to any help.
Thanks