PublicOnPlayerDeath(WHY,AM,I,NOT,WORKING)playerid, reason;
#1

1st Death from joining the server: You are given the Select a Class screen and see CJ's Skin and when you click this your spawned at 0,0,0

2nd Death from joining the server: it works properly and uses the code below
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        SetSpawnInfo(playerid,0,PlayerInfo[playerid][pModel],1068.2227,-325.0952,73.9922,0,0,0,0,0,0,0);
	PlayerInfo[killerid][pTotalKills]++;
        PlayerInfo[playerid][pTotalDeaths]++;
	return 1;
}
Reply
#2

Could you do something like this?
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid, 1068.2227,-325.0952,73.9922);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
}

public OnPlayerDeath(playerid)
{
    PlayerInfo[killerid][pTotalKills]++;
    PlayerInfo[playerid][pTotalDeaths]++;
}
Reply
#3

Cant do that because it defies the point and it it would still do the same thing
Also it would over write my Position saving... cause youd load into the saves co-ords but then only be snatched from em by that ugly SetPlayerPos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)