Advertisement
Guest User

Untitled

a guest
Apr 25th, 2011
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.86 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3.  
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     print("\n--------------------------------------");
  8.     print(" Return To Death Zone by [ISS]Daniele_Tom");
  9.     print("--------------------------------------\n");
  10.     return 1;
  11. }
  12.  
  13.  
  14.  
  15. new Float:x,Float:y,Float:z;
  16. new DeathPos[MAX_PLAYERS];
  17.  
  18.  
  19.  
  20. public OnPlayerDeath(playerid, killerid, reason)
  21. {
  22.     DeathPos[playerid] = GetPlayerPos(playerid,x,y,z);
  23.     return 1;
  24. }
  25.  
  26.  
  27. public OnPlayerSpawn(playerid)
  28. {
  29.     if(DeathPos[playerid] == true)
  30.     {
  31.         ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{e00000}Death Zone","{00b000}Do you want return  where you're dead?","Ok","Close");
  32.         }
  33.             return 1;
  34. }
  35.  
  36.  
  37.  
  38.  
  39. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  40. {
  41.     if(dialogid == 1)
  42.     {
  43.         if(response) return SetPlayerPos(playerid,x,y,z);
  44.         if(!response) return 1;
  45.         }
  46.         return 1;
  47.    
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement