#include <a_samp>new Float:DiePos[3][MAX_PLAYERS];public OnFilterScriptInit() return print(\" DiePos FS Chucktól VTXnek Loaded!\");public OnFilterScriptExit() return print(\" DiePos FS Chucktól VTXnek UNLoaded!\");public OnPlayerDeath(playerid, killerid, reason) return GetPlayerPos(playerid,DiePos[0][playerid],DiePos[1][playerid],DiePos[2][playerid]);public OnPlayerSpawn(playerid) return SetPlayerPos(playerid,DiePos[0][playerid],DiePos[1][playerid],DiePos[2][playerid]);
Ezzel mikor még nem mentette a pozíciót, vagyis mikor még nem halt meg, vidékre kivágja a playert.(igen, sry, csak ennyi idom volt, ha senki sem írja meg du-ig, megírom) [/quote]Errol megfeledkezdtem,ez már muxik: #include <a_samp>new bool:Saved[MAX_PLAYERS];new Float:DiePos[3][MAX_PLAYERS];public OnFilterScriptInit() return print(\" DiePos FS Chucktól Depinek Loaded!\");public OnFilterScriptExit() return print(\" DiePos FS Chucktól Depinek UNLoaded!\");public OnPlayerDeath(playerid, killerid, reason) { GetPlayerPos(playerid,DiePos[0][playerid],DiePos[1][playerid],DiePos[2][playerid]); return Saved[playerid] = true; }public OnPlayerSpawn(playerid) { if(Saved[playerid] == true) return SetPlayerPos(playerid,DiePos[0][playerid],DiePos[1][playerid],DiePos[2][playerid]); return Saved[playerid] = false; }
#include <a_samp>new bool:Saved[MAX_PLAYERS];new Float:DiePos[3][MAX_PLAYERS];public OnFilterScriptInit() return print(\" DiePos FS Chucktól Depinek Loaded!\");public OnFilterScriptExit() return print(\" DiePos FS Chucktól Depinek UNLoaded!\");public OnPlayerDeath(playerid, killerid, reason) { GetPlayerPos(playerid,DiePos[0][playerid],DiePos[1][playerid],DiePos[2][playerid]); return Saved[playerid] = true; }public OnPlayerSpawn(playerid) { if(Saved[playerid] == true) return SetPlayerPos(playerid,DiePos[0][playerid],DiePos[1][playerid],DiePos[2][playerid]); return Saved[playerid] = false; }
new Float: E[MAX_PLAYERS][3];public OnPlayerSpawn(playerid){ if(E[playerid][0] == 0.0 && E[playerid][1] == 0.0 && E[playerid][2] == 0.0) {} else SetPlayerPos(playerid,E[playerid][0],E[playerid][1],E[playerid][2]);return 1;}public OnPlayerDeath(playerid, killerid, reason){ GetPlayerPos(playerid,E[playerid][0],E[playerid][1],E[playerid][2]);return 1;}public OnPlayerConnect(playerid){E[playerid][0] = 0;E[playerid][2] = 0;E[playerid][1] = 0;return 1;}
print(\" DiePos FS Chucktól Depinek UNLoaded!\"); Na meg ez xD nem Depinek hanem VTX-nek xD
Meg csinálom
#include <a_samp>new Float: E[MAX_PLAYERS][3];public OnPlayerSpawn(playerid){ if(E[playerid][0] == 0.0 && E[playerid][1] == 0.0 && E[playerid][2] == 0.0) {} else SetPlayerPos(playerid,E[playerid][0],E[playerid][1],E[playerid][2]);return 1;}public OnPlayerDeath(playerid, killerid, reason){ GetPlayerPos(playerid,E[playerid][0],E[playerid][1],E[playerid][2]);return 1;}public OnPlayerConnect(playerid){E[playerid][0] = 0;E[playerid][2] = 0;E[playerid][1] = 0;return 1;}