Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3.     if(playerid != INVALID_PLAYER_ID && killerid != INVALID_PLAYER_ID)
  4.     {
  5.         new Float: pPosX, Float: pPosY, Float: pPosZ;
  6.         switch(reason)
  7.         {
  8.             case 0..18, 22..42:
  9.             {
  10.                 GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
  11.                 SetPlayerCameraPos(playerid, pPosX, pPosY, pPosZ);
  12.                 GetPlayerPos(killerid, pPosX, pPosY, pPosZ);
  13.                 SetPlayerCameraLookAt(playerid, pPosX, pPosY, pPosZ);
  14.             }
  15.         }
  16.     }
  17.     return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement