How to make player spawn at location where he was killed?
#2

pawn Код:
new Float:dsx,
    Float:dsy,
    Float:dsz;

public OnPlayerSpawn( playerid )
{
    SetPlayerPos( playerid, dsx, dsy, dsz );
    PlayerPlaySound( playerid, 1139, 0.0, 0.0, 0.0 );
    SendClientMessage( playerid, ~1, "SERVER: You have been respawned at murder place!" );
    return ( 1 );
}

public OnPlayerDeath( playerid, killerid, reason )
{
    GetPlayerPos( playerid, dsx, dsy, dsz );
    SendClientMessage( playerid, ~1, "SERVER: You died! You will respawn right here!" );
    return ( 1 );
}
Some man just don't say thx..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)