Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(playerid != INVALID_PLAYER_ID && killerid != INVALID_PLAYER_ID)
- {
- new Float: pPosX, Float: pPosY, Float: pPosZ;
- switch(reason)
- {
- case 0..18, 22..42:
- {
- GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
- SetPlayerCameraPos(playerid, pPosX, pPosY, pPosZ);
- GetPlayerPos(killerid, pPosX, pPosY, pPosZ);
- SetPlayerCameraLookAt(playerid, pPosX, pPosY, pPosZ);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement