Ao Morrer Sou Expulso da Org
#1

Bom galera, sу para informar, eu atй consigo mecher nos arquivos pwn porem n tenho conhecimento suficiente para talvez entender a linguagem que vocкs usam, meu problema й o seguinte. eu estava testando meu gm e tals, ai quando por um acaso eu estava testando um fs de sistema de hospital.. dai eu entrei no heli e subi ele.. chegando la em cima eu me joguei para morrer propositalmente para ver se o sistema de hospital estava funcionando.. sу que eu percebi que sou expulso da org assim que eu morro.. dai eu pensei q era o fs do sistema de hospital, retirei ele e mesmo assim eu sou expulso quando eu morro! quem souber ajudar agradeзo!
Reply
#2

This is an English forum. If you want help in some other language create a thread in the Other Languages section OR post here in English.
Reply
#3

ok, im sorry, i didnt konw, im new in this forum, but my doubt is:
when i die i'm expelled of my org.. i dont know what to do, i know a little about pwn but is not enough to solve this problem.. thanks for help!
Reply
#4

i dont know if this is the correct code but here it goes:
public OnPlayerDeath(playerid, killerid, reason)
{
VezesMorto[playerid]++;
new name[MAX_PLAYER_NAME];
new string[256];
//new dmessage[128];
//new deathreason[20];
new playercash;
new killerName[MAX_PLAYER_NAME];
new playerName[MAX_PLAYER_NAME];
new victimteam;
new Floatx,Floaty,Floatz;
new killerteam;
new GTRID = GetPlayerTerritorio(playerid);
victimteam = gTeam[playerid];
killerteam = gTeam[killerid];
gPlayerSpawned[playerid] = 0;
GetPlayerName(playerid, name, sizeof(name));
PlayerInfo[playerid][pLocal] = 255;
GetPlayerPos(playerid, px, py, pz);
spawnado[playerid] = 0;
for(new x = 0; x <= MAX_PLAYERS; x++)
{
TextDrawHideForPlayer(x, MortoInfo[x]);
if(IsPlayerInFavela(x) || IsPlayerInBoca2(x) || IsPlayerInQuadra(x) || IsPlayerInPark(x)
|| IsPlayerInBoca1(x) || IsPlayerInBoca3(x) || IsPlayerInRiacho(x) || IsPlayerInIndustria(x)
|| IsPlayerInFonteSF(x) || IsPlayerInShoppingSF(x) || IsPlayerInPraiaSF(x)
|| IsPlayerInAeroSF(x) || IsPlayerInConstrucaoSF(x) || IsPlayerInRiacho(x)
|| IsPlayerInCasarao(x) || IsPlayerInEstacao(x))
{
format(string, sizeof(string), "%s%s ~w~(%s)~n~~n~~w~Matou~n~~n~%s%s ~w~(Morto %d vezes)",RandomTextColor[random(sizeof(RandomTextColor))], GetName(killerid), GetWeaponInformation(GetPlayerWeapon(killerid)), RandomTextColor[random(sizeof(RandomTextColor))], GetName(playerid), VezesMorto[playerid]);
TextDrawFormatShowForPlayer(x,MortoInfo[x],string);
}
}
if(TendoGuerra >= 1)
{
if(IsPlayerInGuerra(playerid) && IsPlayerInGuerra(killerid))
{
if(ExeXHam >= 1)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(ExeXAlq >= 1)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(HamXExe >= 1)
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(HamXAlq >= 1)
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(AlqXExe >= 1)
{
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(AlqXHam >= 1)
{
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
}
}
if(EntrounoEvento == 1)
{
GetPlayerName(playerid,killerName,sizeof(killerNam e));
GetPlayerName(playerid,playerName,sizeof(playerNam e));
format(xDString, sizeof(xDString), "[BRJOGOS] %s matou %s Arma:%d", killerName, playerName, reason);
SendClientMessageToAll(0x33FF00FF, xDString);
EntrounoEvento = 0;
}
if(JogadorNoEvento[playerid] != 1)
{
JogadorNoEvento[killerid] ++;
if(JogadorNoEvento[killerid] > VencedorDoEvento)
{
new killer[MAX_PLAYER_NAME];
VencedorDoEvento = killerid;
VencedorDoEvento = JogadorNoEvento[killerid];
GetPlayerName(killerid, killer, sizeof(killer));
}
return 1;
}
if(ProvocoCasarao[playerid] == 1)
{
GangZoneStopFlashForAll(GZCasarao);
GangZoneShowForAll(GZCasarao, 0xFFFFFF96);
GuerranoCasarao = 0;
ProvocoCasarao[playerid] = 0;
donocasarao = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCasarao);
}
if(ProvocoRiacho[playerid] == 1)
{
GangZoneStopFlashForAll(GZRiacho);
GangZoneShowForAll(GZRiacho, 0xFFFFFF96);
GuerranoRiacho = 0;
ProvocoRiacho[playerid] = 0;
donoriacho = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraRiacho);
}
if(ProvocoIndustria[playerid] == 1)
{
GangZoneStopFlashForAll(GZIndustria);
GangZoneShowForAll(GZIndustria, 0xFFFFFF96);
GuerranaIndustria = 0;
ProvocoIndustria[playerid] = 0;
donoindustria = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraIndustria);
}
if(ProvocoEstacao[playerid] == 1)
{
GangZoneStopFlashForAll(GZEstacao);
GangZoneShowForAll(GZEstacao, 0xFFFFFF96);
GuerranaEstacao = 0;
ProvocoEstacao[playerid] = 0;
donoestacao = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraEstacao);
}
if(ProvocoFavela[playerid] == 1)
{
GangZoneStopFlashForAll(GZFavela);
GangZoneShowForAll(GZFavela, 0xFFFFFF96);
GuerranaFavela = 0;
ProvocoFavela[playerid] = 0;
donofavela = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFavela);
}
if(ProvocoQuadra[playerid] == 1)
{
GangZoneStopFlashForAll(GZQuadra);
GangZoneShowForAll(GZQuadra, 0xFFFFFF96);
GuerranaQuadra = 0;
ProvocoQuadra[playerid] = 0;
donoquadra = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraQuadra);
}
if(ProvocoBoca1[playerid] == 1)
{
GangZoneStopFlashForAll(GZBoca1);
GangZoneShowForAll(GZBoca1, 0xFFFFFF96);
GuerranoBoca1 = 0;
ProvocoBoca1[playerid] = 0;
donoBoca1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraBoca1);
}
if(ProvocoPark[playerid] == 1)
{
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
GuerranoPark = 0;
ProvocoPark[playerid] = 0;
donopark = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPark);
}
if(ProvocoBoca2[playerid] == 1)
{
GangZoneStopFlashForAll(GZBoca2);
GangZoneShowForAll(GZBoca2, 0xFFFFFF96);
GuerranoBoca2 = 0;
ProvocoBoca2[playerid] = 0;
donoBoca2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraBoca2);
}
if(ProvocoBoca3[playerid] == 1)
{
GangZoneStopFlashForAll(GZBoca3);
GangZoneShowForAll(GZBoca3, 0xFFFFFF96);
GuerranoBoca3 = 0;
ProvocoBoca3[playerid] = 0;
donoBoca3 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraBoca3);
}
Reply
#5

i think this is the OnPlayerSpawn:


public OnPlayerSpawn(playerid)
{
LoadPlayerVehicle(playerid);
TextDrawShowForPlayer(playerid, TextGrana[playerid]);
SetPlayerVirtualWorld(playerid, void); //Por enquanto й isso
SetPVarInt(playerid, "Universo", void);
AntiDeAMX();
/*if(playerid == 0)//Policial Charles by Junior_BRJOGOS & Ken_xD
{
SetPlayerSkin(playerid, 281);
new Text3D:charleslabel[MAX_PLAYERS];
new bot1string[256];
format(bot1string, sizeof(bot1string), "Policial_Charles");
charleslabel[playerid] = Create3DTextLabel(bot1string, COP_COLOR, 30.0, 40.0, 50.0, 3.0, 0, 0);
Attach3DTextLabelToPlayer(charleslabel[playerid], playerid, 0.0, 0.0, 0.7);
}*/
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(IsPlayerInFavela(x) || IsPlayerInBoca2(x) || IsPlayerInQuadra(x) || IsPlayerInPark(x)
|| IsPlayerInBoca1(x) || IsPlayerInBoca3(x) || IsPlayerInRiacho(x) || IsPlayerInIndustria(x)
|| IsPlayerInFonteSF(x) || IsPlayerInShoppingSF(x) || IsPlayerInPraiaSF(x)
|| IsPlayerInAeroSF(x) || IsPlayerInConstrucaoSF(x) || IsPlayerInRiacho(x)
|| IsPlayerInCasarao(x) || IsPlayerInEstacao(x))
{}
else
{
TextDrawHideForPlayer(x, MortoInfo[x]);
}
}
if (PlayerInfo[playerid][pLevel] > 0)
{
new Text3D:nivellabel[MAX_PLAYERS];
new string[256];
new nomedocaba[MAX_PLAYER_NAME];
Delete3DTextLabel(nivellabel[playerid]);
GetPlayerName(playerid, nomedocaba, MAX_PLAYER_NAME);
format(string, sizeof(string), "Nivel: %d",PlayerInfo[playerid][pLevel]);
nivellabel[playerid] = Create3DTextLabel(string, 0x33FF00FF, 30.0, 40.0, 50.0, 3.0, 0, 0);
Attach3DTextLabelToPlayer(nivellabel[playerid], playerid, 0.0, 0.0, 0.7);
}
CheckInfoOrg(playerid);
TextDrawHideForAll(Reloginho1);
TextDrawShowForPlayer(playerid, Reloginho1);
TextDrawHideForAll(Reloginho2);
TextDrawShowForPlayer(playerid, Reloginho2);
new plname[MAX_PLAYER_NAME];
new string[256];
if(sincronizando[playerid] == 1)
{
return 1;
}
if(EntrounoEvento == 1)
{
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
return 1;
}
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0)
{
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "%s.ini", plname);
if(fexist(string))
{

After this starts the login box !! thanks for help again !!
Reply
#6

i've just solved the problem guys, but anyway i'm really glad for your help. the problem is, the cmd that i was using, in my gamemode there's two cmds for this application, so, the cmd /darlider and /lider has almost the same meaning, but i didnt know which one i should use, now i know. thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)