16.01.2015, 21:34
Algo asi?
Es para guardarla cuando mueres
pawn Код:
new
Float: GuardarPosicion[ MAX_PLAYERS ][ 4 ];
pawn Код:
public OnPlayerDeath( playerid, killerid, reason )
{
GuardarPosicion[ playerid ][ 0 ] = 0.0;
GuardarPosicion[ playerid ][ 1 ] = 0.0;
GuardarPosicion[ playerid ][ 2 ] = 0.0;
GuardarPosicion[ playerid ][ 3 ] = 0.0;
return 1;
}
pawn Код:
public OnPlayerSpawn( playerid )
{
SetPlayerPos( playerid, GuardarPosicion[ playerid ][ 0 ], GuardarPosicion[ playerid ][ 1 ], GuardarPosicion[ playerid ][ 2 ] );
GetPlayerFacingAngle(playerid,GuardarPosicion[ playerid ][ 3 ]);
return 1;
}