OnPlayerSpawn problem
#1

I spawn middle of nowhere


here is my onplayerspawn

PHP код:
}
public 
OnPlayerSpawn(playerid)
{
      if(
PlayerInfo[playerid][pTut] == 0)
    {
        
PlayerInfo[playerid][pConnectTime] = 0;
        
PlayerInfo[playerid][pBank] = 500;
        
PlayerInfo[playerid][pFight] = 0;
        
PlayerInfo[playerid][pTalk] = 0;
        
PlayerInfo[playerid][pBan] = 0;
        
RegistrationStep[playerid] = 1;
        
Wounded[playerid] = 0;
        
IsUsingAnim[playerid] = 0;
        
SetPlayerCash(playerid,PlayerInfo[playerid][pCash]);
        
TogglePlayerControllable(playerid0);
        
TutorialStage[playerid] = 1;
    }
    if(!
gPlayerAnimLibsPreloaded[playerid])
    {
           
PreloadAnimLib(playerid,"BOMBER");
           
PreloadAnimLib(playerid,"RAPPING");
        
PreloadAnimLib(playerid,"SHOP");
        
PreloadAnimLib(playerid,"RIOT");
           
PreloadAnimLib(playerid,"BEACH");
           
PreloadAnimLib(playerid,"SMOKING");
        
PreloadAnimLib(playerid,"FOOD");
        
PreloadAnimLib(playerid,"ON_LOOKERS");
        
PreloadAnimLib(playerid,"DEALER");
        
PreloadAnimLib(playerid,"CRACK");
        
PreloadAnimLib(playerid,"BEACH");
        
PreloadAnimLib(playerid,"MISC");
        
PreloadAnimLib(playerid,"OTB");
        
PreloadAnimLib(playerid,"SWEET");
        
PreloadAnimLib(playerid,"CARRY");
        
PreloadAnimLib(playerid,"COP_AMBIENT");
        
PreloadAnimLib(playerid,"PARK");
        
PreloadAnimLib(playerid,"INT_HOUSE");
        
PreloadAnimLib(playerid,"HEIST9");
        
PreloadAnimLib(playerid,"FOOD");
        
PreloadAnimLib(playerid,"PED");
        
PreloadAnimLib(playerid,"GHANDS");
        
PreloadAnimLib(playerid,"FIGHT_D");
        
PreloadAnimLib(playerid,"STRIP");
        
PreloadAnimLib(playerid,"BLOWJOBZ");
        
PreloadAnimLib(playerid,"BSKTBALL");
        
PreloadAnimLib(playerid,"BASEBALL");
        
PreloadAnimLib(playerid,"GRAVEYARD");
        
PreloadAnimLib(playerid,"FAT");
        
PreloadAnimLib(playerid,"GANGS");
        
PreloadAnimLib(playerid,"COLT45");
        
PreloadAnimLib(playerid,"TEC");
        
PreloadAnimLib(playerid,"BOX");
        
PreloadAnimLib(playerid,"SUNBATHE");
        
PreloadAnimLib(playerid,"CAR");
        
PreloadAnimLib(playerid,"BD_Fire");
        
PreloadAnimLib(playerid,"BIKES");
        
gPlayerAnimLibsPreloaded[playerid] = 1;
    }
    if(
gPlayerLogged[playerid])
    {
        
SetPlayerSpawn(playerid);
        
SetPlayerHealth(playerid,100);
    }
    return 
1
Reply


Messages In This Thread
OnPlayerSpawn problem - by N0FeaR - 13.06.2012, 10:05
Re: OnPlayerSpawn problem - by tiernantheman - 13.06.2012, 10:08
Re: OnPlayerSpawn problem - by N0FeaR - 13.06.2012, 10:13
Re: OnPlayerSpawn problem - by denNorske - 13.06.2012, 10:14
Re: OnPlayerSpawn problem - by N0FeaR - 13.06.2012, 10:17
Re: OnPlayerSpawn problem - by N0FeaR - 13.06.2012, 10:23
Re: OnPlayerSpawn problem - by denNorske - 13.06.2012, 10:29
Re: OnPlayerSpawn problem - by N0FeaR - 13.06.2012, 10:30
Re: OnPlayerSpawn problem - by denNorske - 13.06.2012, 10:38
Re: OnPlayerSpawn problem - by N0FeaR - 13.06.2012, 10:43

Forum Jump:


Users browsing this thread: 2 Guest(s)