Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Daha fazlası için: http://xpdevil.com
- */
- #include <a_samp>
- new Float:sonpos[MAX_PLAYERS][3];
- new sonint[MAX_PLAYERS];
- public OnPlayerDeath(playerid,killerid,reason)
- {
- SetPVarInt(playerid, "sp_Olum", 1);
- GetPlayerPos(playerid, sonpos[playerid][0], sonpos[playerid][1], sonpos[playerid][2]);
- sonint[playerid] = GetPlayerInterior(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(GetPVarInt(playerid, "sp_Olum") == 1)
- {
- ShowPlayerDialog(playerid,5121,DIALOG_STYLE_MSGBOX,"UYARI","En Son Oldugun Yere Gitmek İstiyormusun?","Git","Cik");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 5121)
- {
- if(response)
- {
- SetPlayerPos(playerid, sonpos[playerid][0], sonpos[playerid][1], sonpos[playerid][2]);
- SetPlayerInterior(playerid, sonint[playerid]);
- SendClientMessage(playerid, 0x33AA33AA, "Basariyla Oldugunuz Yere İsinlandiniz!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement