Stay within the world boundaries / loading
#4

Like SpawnPlayer? Yeah..

Once logged in an the player has loaded all data from database;
pawn Код:
SetSpawnInfo(extraid, 0, playerVariables[extraid][pSkin], playerVariables[extraid][pPos][0], playerVariables[extraid][pPos][1], playerVariables[extraid][pPos][2], 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(extraid);
                       
SetPlayerVirtualWorld(extraid, playerVariables[extraid][pVirtualWorld]);
SetPlayerInterior(extraid, playerVariables[extraid][pInterior]);
.. and that's it.

Here's my OnPlayerDeath by the way;
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
        if(IsPlayerAttachedObjectSlotUsed(playerid, i))
        {
            RemovePlayerAttachedObject(playerid, i);
        }
    }
    SetPlayerSpecialActionEx(playerid, SPECIAL_ACTION_NONE);
    validResetPlayerWeapons(playerid);
    playerVariables[playerid][pPhoneCall] = -1;
                   
    if(playerVariables[playerid][pAdminDuty] == 1)
    {
        GetPlayerPos(playerid, playerVariables[playerid][pPos][0], playerVariables[playerid][pPos][1], playerVariables[playerid][pPos][2]);
    }
    else playerVariables[playerid][pHospital] = -1;
    return 1;
}

EDIT:
Quote:
Originally Posted by zT KiNgKoNg
Посмотреть сообщение
Place this in "OnGamemodeInt"

pawn Код:
AddPlayerClass(0, -1412.0469, -303.6844, 14.0414, 269.1425, 0, 0, 0, 0, 0, 0);
I've tried adding classes but that does not work at all!
Reply


Messages In This Thread
Stay within the world boundaries / loading - by Flyfishes - 31.05.2013, 12:55
Re: Stay within the world boundaries / loading - by BossZk - 31.05.2013, 12:59
Re: Stay within the world boundaries / loading - by zT KiNgKoNg - 31.05.2013, 13:03
Re: Stay within the world boundaries / loading - by Flyfishes - 31.05.2013, 13:03
Re: Stay within the world boundaries / loading - by [SP]Badman - 31.05.2013, 16:40
Re: Stay within the world boundaries / loading - by Dopefull - 31.05.2013, 17:08

Forum Jump:


Users browsing this thread: 3 Guest(s)