Quote:
Originally Posted by FlavioCesar
Algo asi?
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 ] ); return 1; }
Es para guardarla cuando mueres
|
pawn Код:
GetPlayerPos(playerid,GuardarPosicion[ playerid ][ 0 ],GuardarPosicion[ playerid ][ 1 ],GuardarPosicion[ playerid ][ 2 ]);
GetPlayerFacingAngle(playerid,GuardarPosicion[ playerid ][ 3 ]);