Advertisement
Guest User

Untitled

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