Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new
- Float:x,
- Float:y,
- Float:z,
- bool:Deaths[MAX_PLAYERS],
- DeathPos[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Return To Death Zone by [ISS]Daniele_Tom");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- DeathPos[playerid] = GetPlayerPos(playerid,x,y,z);
- Deaths[playerid] = true;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(Deaths[playerid] == true)
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{e00000}Death Zone","{00b000}Do you want return where you're dead?","Ok","Close");
- Deaths[playerid] = false;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response) return SetPlayerPos(playerid,x,y,z);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement