Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- enum xx
- {
- Float:LastX,
- Float:LastY,
- Float:LastZ,
- Float:LastA
- }
- new Player[MAX_PLAYERS][xx];
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X,Y,Z);
- GetPlayerFacingAngle(playerid, A);
- Player[playerid][LastX] = X;
- Player[playerid][LastY] = Y;
- Player[playerid][LastZ] = Z;
- Player[playerid][LastA] = A;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerPos(playerid, Player[playerid][LastX], Player[playerid][LastY], Player[playerid][LastZ]);
- SetPlayerFacingAngle(playerid, Player[playerid][LastA]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement