SA-MP Forums Archive
[AJUDA]GTA para de funcionar quando entra no Server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]GTA para de funcionar quando entra no Server (/showthread.php?tid=263203)



[AJUDA]GTA para de funcionar quando entra no Server - Rodox_Mortein - 20.06.2011

Poxa vida meu gamemode andando a 1000 por hora e agora aparece 1 problema "novo" ......
Ligo o gamemode e tals ... ta compilando 100%
mais na hora de entrar no gamemode o jogo agarra... sempre agarra...
dai peguei 1 backup antigo e coloquei la e funcionou 100% ...
alguem pelo amor de deus me ajuda!!!


Respuesta: [AJUDA]GTA para de funcionar quando entra no Server - ScripterTroll - 21.06.2011

Coloca aqui o OnPlayerConnect

Pelo amor de deus, aprendam a fazer tуpicos.


Re: [AJUDA]GTA para de funcionar quando entra no Server - Rodox_Mortein - 21.06.2011

public OnPlayerConnect(playerid)
{

GivePlayerMoney(playerid,1000);

SetPlayerMapIcon(playerid,0,1555.73913600,-1675.22253400,28.05583000,30,0);//Policia
SetPlayerMapIcon(playerid,1,1621.77893100,-1860.58093300,13.21113600,30,0);//Policia2
SetPlayerMapIcon(playerid,2,1468.13879400,-1496.52429200,13.20725300,30,0);//Policia3
SetPlayerMapIcon(playerid,3,1025.51147500,-364.44195600,73.58533500,30,0);//Policia4
SetPlayerMapIcon(playerid,4,2531.83618200,-2328.37255900,22.35070000,30,0);//Policia5
SetPlayerMapIcon(playerid,5,2411.54589800,-2426.93164100,13.03538100,30,0);//Policia6
SetPlayerMapIcon(playerid,6,2379.41308600,-2662.86938500,13.15911900,30,0);//Policia7
SetPlayerMapIcon(playerid,7,1707.40686000,-1474.22448700,13.20725300,20,0);//Bombeiros
SetPlayerMapIcon(playerid,8,2035.49877900,-1413.01013200,16.65256500,22,0);//Hospital
SetPlayerMapIcon(playerid,9,1177.97522000,-1324.77734400,13.75759500,22,0);//Hospital2
SetPlayerMapIcon(playerid,10,329.98651100,-1517.20544400,35.52756500,22,0);//Hospital3
SetPlayerMapIcon(playerid,11,924.79150400,-1222.22766100,16.63694000,34,0);//Reportes
SetPlayerMapIcon(playerid,12,771.12133800,-1356.71691900,13.19270300,34,0);//Reportes2
SetPlayerMapIcon(playerid,13,1129.37121600,-1427.87207000,15.45725300,36,0);//shopping
SetPlayerMapIcon(playerid,14,1090.96789600,-1619.32617200,13.32342500,36,0);//shopping2
SetPlayerMapIcon(playerid,15,1177.31335400,-1803.87451200,33.29665400,34,0);//rodoviaria
SetPlayerMapIcon(playerid,16,1771.45593300,-1862.39013700,13.23672900,34,0);//estacao
SetPlayerMapIcon(playerid,17,1791.82605000,-1912.82824700,13.05644600,55,0);//taxistas
SetPlayerMapIcon(playerid,18,1833.87634300,-1682.25000000,13.11537700,48,0);//alhambras
SetPlayerMapIcon(playerid,19,1942.02136200,-1772.92858900,13.31734300,27,0);//posto sul
SetPlayerMapIcon(playerid,20,1003.99292000,-937.43701200,41.84006500,27,0);//posto norte
SetPlayerMapIcon(playerid,21,959.04156500,-931.69110100,42.00752300,55,0);//auto escola
SetPlayerMapIcon(playerid,22,1029.81909200,-1901.50378400,12.60562900,36,0);//camelo
SetPlayerMapIcon(playerid,23,837.60205100,-2096.68408200,0.74307700,9,0);//Porto
SetPlayerMapIcon(playerid,24,369.93261700,-2045.25036600,7.33225300,9,0);//Pier
SetPlayerMapIcon(playerid,25,559.53283700,-1289.46679700,16.90861300,36,0);//Concessionaria
SetPlayerMapIcon(playerid,26,1043.74365200,-901.26770000,42.22686000,51,0);//Caminhoneiros
SetPlayerMapIcon(playerid,27,2165.31958000,-1005.56073000,62.45788600,24,0);//Morro
SetPlayerMapIcon(playerid,28,2226.64257800,-1346.34350600,23.64512600,21,0);//Igreja
SetPlayerMapIcon(playerid,29,1906.06799300,-1406.46704100,13.30779600,18,0);//Pista Skate
SetPlayerMapIcon(playerid,30,2660.20507800,-1432.10986300,30.14202300,51,0);//Lixeiros
SetPlayerMapIcon(playerid,31,2521.50122100,-1529.61535600,23.31792100,55,0);//CarrosUsados



SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 0);

new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
if(!strcmp(plrIP, "127.0.0.1"))//SEU IP
SendClientMessage(playerid, 0xFFFFFFFF, "Bem Vindo ao Server 'Membro Master' Vocк Foi Logado Auto");
SendRconCommand("/rcon login changemde");


new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s logou no servidor", pname);
SendClientMessageToAll(0xAAAAAAAA, string);

PlayerPlaySound(playerid,1062,0.0,0.0,0.0);


GangZoneShowForAll(favela, 0xFFFFFFFF);
GangZoneShowForAll(industria, 0xFFFFFFFF);
GangZoneShowForAll(pista, 0xFFFFFFFF);
GangZoneShowForAll(parkglen, 0xFFFFFFFF);
GangZoneShowForAll(terminal, 0xFFFFFFFF);
GangZoneShowForAll(bocadadoca, 0xFFFFFFFF);
GangZoneShowForAll(bocadefumo, 0xFFFFFFFF);
GangZoneShowForAll(shopping, 0xFFFFFFFF);
GangZoneShowForAll(casabranca, 0xFFFFFFFF);
GangZoneShowForAll(pier, 0xFFFFFFFF);
GangZoneShowForAll(cassinos, 0xFFFFFFFF);
GangZoneShowForAll(cimiterio, 0xFFFFFFFF);
GangZoneShowForAll(quadrabasket, 0xFFFFFFFF);
return 1;
}


AW: [AJUDA]GTA para de funcionar quando entra no Server - Miqueias Barros - 21.06.2011

Credo, isso tudo ai? Pхe dentro de um [*code][*/code]


Re: [AJUDA]GTA para de funcionar quando entra no Server - Erickini - 21.06.2011

Ta ae o code Miqueis, sу nгo sei resolver oO

Код:
public OnPlayerConnect(playerid)
{

GivePlayerMoney(playerid,1000);

SetPlayerMapIcon(playerid,0,1555.73913600,-1675.22253400,28.05583000,30,0);//Policia
SetPlayerMapIcon(playerid,1,1621.77893100,-1860.58093300,13.21113600,30,0);//Policia2
SetPlayerMapIcon(playerid,2,1468.13879400,-1496.52429200,13.20725300,30,0);//Policia3
SetPlayerMapIcon(playerid,3,1025.51147500,-364.44195600,73.58533500,30,0);//Policia4
SetPlayerMapIcon(playerid,4,2531.83618200,-2328.37255900,22.35070000,30,0);//Policia5
SetPlayerMapIcon(playerid,5,2411.54589800,-2426.93164100,13.03538100,30,0);//Policia6
SetPlayerMapIcon(playerid,6,2379.41308600,-2662.86938500,13.15911900,30,0);//Policia7
SetPlayerMapIcon(playerid,7,1707.40686000,-1474.22448700,13.20725300,20,0);//Bombeiros
SetPlayerMapIcon(playerid,8,2035.49877900,-1413.01013200,16.65256500,22,0);//Hospital
SetPlayerMapIcon(playerid,9,1177.97522000,-1324.77734400,13.75759500,22,0);//Hospital2
SetPlayerMapIcon(playerid,10,329.98651100,-1517.20544400,35.52756500,22,0);//Hospital3
SetPlayerMapIcon(playerid,11,924.79150400,-1222.22766100,16.63694000,34,0);//Reportes
SetPlayerMapIcon(playerid,12,771.12133800,-1356.71691900,13.19270300,34,0);//Reportes2
SetPlayerMapIcon(playerid,13,1129.37121600,-1427.87207000,15.45725300,36,0);//shopping
SetPlayerMapIcon(playerid,14,1090.96789600,-1619.32617200,13.32342500,36,0);//shopping2
SetPlayerMapIcon(playerid,15,1177.31335400,-1803.87451200,33.29665400,34,0);//rodoviaria
SetPlayerMapIcon(playerid,16,1771.45593300,-1862.39013700,13.23672900,34,0);//estacao
SetPlayerMapIcon(playerid,17,1791.82605000,-1912.82824700,13.05644600,55,0);//taxistas
SetPlayerMapIcon(playerid,18,1833.87634300,-1682.25000000,13.11537700,48,0);//alhambras
SetPlayerMapIcon(playerid,19,1942.02136200,-1772.92858900,13.31734300,27,0);//posto sul
SetPlayerMapIcon(playerid,20,1003.99292000,-937.43701200,41.84006500,27,0);//posto norte
SetPlayerMapIcon(playerid,21,959.04156500,-931.69110100,42.00752300,55,0);//auto escola
SetPlayerMapIcon(playerid,22,1029.81909200,-1901.50378400,12.60562900,36,0);//camelo
SetPlayerMapIcon(playerid,23,837.60205100,-2096.68408200,0.74307700,9,0);//Porto
SetPlayerMapIcon(playerid,24,369.93261700,-2045.25036600,7.33225300,9,0);//Pier
SetPlayerMapIcon(playerid,25,559.53283700,-1289.46679700,16.90861300,36,0);//Concessionaria
SetPlayerMapIcon(playerid,26,1043.74365200,-901.26770000,42.22686000,51,0);//Caminhoneiros
SetPlayerMapIcon(playerid,27,2165.31958000,-1005.56073000,62.45788600,24,0);//Morro
SetPlayerMapIcon(playerid,28,2226.64257800,-1346.34350600,23.64512600,21,0);//Igreja
SetPlayerMapIcon(playerid,29,1906.06799300,-1406.46704100,13.30779600,18,0);//Pista Skate
SetPlayerMapIcon(playerid,30,2660.20507800,-1432.10986300,30.14202300,51,0);//Lixeiros
SetPlayerMapIcon(playerid,31,2521.50122100,-1529.61535600,23.31792100,55,0);//CarrosUsados



SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 0);

new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
if(!strcmp(plrIP, "127.0.0.1"))//SEU IP
SendClientMessage(playerid, 0xFFFFFFFF, "Bem Vindo ao Server 'Membro Master' Vocк Foi Logado Auto");
SendRconCommand("/rcon login changemde");


new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s logou no servidor", pname);
SendClientMessageToAll(0xAAAAAAAA, string);

PlayerPlaySound(playerid,1062,0.0,0.0,0.0);


GangZoneShowForAll(favela, 0xFFFFFFFF);
GangZoneShowForAll(industria, 0xFFFFFFFF);
GangZoneShowForAll(pista, 0xFFFFFFFF);
GangZoneShowForAll(parkglen, 0xFFFFFFFF);
GangZoneShowForAll(terminal, 0xFFFFFFFF);
GangZoneShowForAll(bocadadoca, 0xFFFFFFFF);
GangZoneShowForAll(bocadefumo, 0xFFFFFFFF);
GangZoneShowForAll(shopping, 0xFFFFFFFF);
GangZoneShowForAll(casabranca, 0xFFFFFFFF);
GangZoneShowForAll(pier, 0xFFFFFFFF);
GangZoneShowForAll(cassinos, 0xFFFFFFFF);
GangZoneShowForAll(cimiterio, 0xFFFFFFFF);
GangZoneShowForAll(quadrabasket, 0xFFFFFFFF);
return 1;
}



Re: [AJUDA]GTA para de funcionar quando entra no Server - Shadoww5 - 21.06.2011

Qual foi a ultima modificaзгo que vocк fez no GM ?

Poste ela aqui.