31.05.2013, 13:03
Like SpawnPlayer? Yeah..
Once logged in an the player has loaded all data from database;
.. and that's it.
Here's my OnPlayerDeath by the way;
EDIT:
I've tried adding classes but that does not work at all!
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]);
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:
I've tried adding classes but that does not work at all!