Advertisement
XpDeviL

[FS] Öldükten Sonra Ölünen Yere Gitme

Nov 4th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.96 KB | None | 0 0
  1. /*
  2.     Daha fazlası için: http://xpdevil.com
  3. */
  4.  
  5. #include <a_samp>
  6.  
  7. new Float:sonpos[MAX_PLAYERS][3];
  8. new sonint[MAX_PLAYERS];
  9.  
  10. public OnPlayerDeath(playerid,killerid,reason)
  11. {
  12.     SetPVarInt(playerid, "sp_Olum", 1);
  13.     GetPlayerPos(playerid, sonpos[playerid][0], sonpos[playerid][1], sonpos[playerid][2]);
  14.     sonint[playerid] = GetPlayerInterior(playerid);
  15.     return 1;
  16. }
  17. public OnPlayerSpawn(playerid)
  18. {
  19.     if(GetPVarInt(playerid, "sp_Olum") == 1)
  20.     {
  21.         ShowPlayerDialog(playerid,5121,DIALOG_STYLE_MSGBOX,"UYARI","En Son Oldugun Yere Gitmek İstiyormusun?","Git","Cik");
  22.     }
  23.     return 1;
  24. }
  25.  
  26. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  27. {
  28.     if(dialogid == 5121)
  29.     {
  30.         if(response)
  31.         {
  32.             SetPlayerPos(playerid, sonpos[playerid][0], sonpos[playerid][1], sonpos[playerid][2]);
  33.             SetPlayerInterior(playerid, sonint[playerid]);
  34.             SendClientMessage(playerid, 0x33AA33AA, "Basariyla Oldugunuz Yere İsinlandiniz!");
  35.         }
  36.     }
  37.     return 1;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement