OnPlayerDeath(...) {new Float:X, Float:Y, Float:Z;GetPlayerPos(playerid, X, Y, Z);SetSpawnInfo(playerid, GetPlayerTeam(playerid), GetPlayerSkin(playerid), X, Y, Z, 0.0, 0, 0, 0, 0, 0, 0);}
KillTimer(vehrept); GameTextForPlayer(playerid, \"~r~Meghaltal!\", 5000, 5); SendDeathMessage(killerid, playerid, reason); if(PlayerData[playerid][PoliceOfficer] == 1){DemotePlayerFromPoliceOfficer(playerid);new name[MAX_PLAYER_NAME];new name2[MAX_PLAYER_NAME];new str[128];GetPlayerName(playerid, name, MAX_PLAYER_NAME);format(str,sizeof(str), \"%s megölte %s -t, Feladat teljesítve!\", name,name2);SendClientMessageToAll(0xAFAFAFAA, str);GivePlayerMoney(killerid, 100);new Float:X, Float:Y, Float:Z;GetPlayerPos(playerid, X, Y, Z);SetSpawnInfo(playerid, GetPlayerTeam(playerid), GetPlayerSkin(playerid), X, Y, Z, 0.0, 0, 0, 0, 0, 0, 0);return 1;}return 1;}
OnPlayerDeath(playerid) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); return 1;}
GetPlayerSkin(playerid), X, Y, Z, 0.0, 0, 0, 0, 0, 0, 0);
nem megy
#include <a_samp> new Float:x,Float:y,Float:z;new DeathPos[MAX_PLAYERS]; public OnPlayerDeath(playerid, killerid, reason){DeathPos[playerid] = GetPlayerPos(playerid,x,y,z);return 1;} public OnPlayerSpawn(playerid){if(DeathPos[playerid] == true){ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"{e00000}Halál zóna\",\"{00b000}Visszaakarsz térni a halálod helyére?\",\"Igen\",\"Nem\"); } return 1;} public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == 1){ if(response) return SetPlayerPos(playerid,x,y,z); if(!response) return 1;}return 1;}
new Float:xkord,Float:ykord,Float:zkord;new HalalHely[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason){HalalHely[playerid] = GetPlayerPos(playerid,xkord,ykord,zkord);return 1;}
public OnPlayerSpawn(playerid){if(HalalHely[playerid] == true){SetPlayerPos(playerid,xkord,ykord,zkord);}return 1;}