Player won't spawn on register
#2

Код:
public Spawn(playerid)
{
        if(strcmp(pInfo[playerid][Gender], "Male", true))
        {
            TogglePlayerSpectating(playerid, 0);
            //SetPlayerPos(playerid, -1424.6716, -288.3624, 14.1484);
            SetPlayerInterior(playerid, 0);
            SetCameraBehindPlayer(playerid);
            SetPlayerSkin(playerid, 295);
            pInfo[playerid][Level] = 1;
            SetSpawnInfo(playerid, 0, 295, -1424.6716,-288.3624,14.1484, 0.0, 0, 0, 0, 0, 0, 0);
            SpawnPlayer(playerid);
        }
        else if(strcmp(pInfo[playerid][Gender], "Female", true))
        {
            TogglePlayerSpectating(playerid, 0);
            //SetPlayerPos(playerid, 1643.0640, -2332.2261, 13.5469);
            SetPlayerInterior(playerid, 0);
            SetCameraBehindPlayer(playerid);
            SetPlayerSkin(playerid, 93);
            pInfo[playerid][Level] = 1;
            SetSpawnInfo(playerid, 0, 93, 1643.0640, -2332.2261, 13.5469, 0.0, 0, 0, 0, 0, 0, 0);
            SpawnPlayer(playerid);
        }
        return 1;
}
Try that.
Reply


Messages In This Thread
Player won't spawn on register - by stormchaser206 - 20.01.2014, 13:32
Re: Player won't spawn on register - by gahal156 - 20.01.2014, 13:53
Re: Player won't spawn on register - by stormchaser206 - 20.01.2014, 14:16
Re: Player won't spawn on register - by ACI - 20.01.2014, 14:38
Re: Player won't spawn on register - by stormchaser206 - 20.01.2014, 17:08
Re: Player won't spawn on register - by stormchaser206 - 21.01.2014, 20:53
Re: Player won't spawn on register - by SchurmanCQC - 21.01.2014, 20:57
Re: Player won't spawn on register - by stormchaser206 - 21.01.2014, 21:03
Re: Player won't spawn on register - by pyrodojo25 - 21.01.2014, 21:04
Re: Player won't spawn on register - by stormchaser206 - 21.01.2014, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)