SA-MP Forums Archive
[AJUDA]Nгo esta salvando onde nasce - 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]Nгo esta salvando onde nasce (/showthread.php?tid=348450)



[AJUDA]Nгo esta salvando onde nasce - denis15711 - 05.06.2012

ent as torcidas q o player escolhe saalva a torcida 0 quando spawn nao vai para sede q o player escolheu antes

No topo do game mod:

new Torcida[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
if(Torcida[playerid] == 0)
SetPlayerPos(playerid,300.4022,-1154.6156,81.3892);
if(Torcida[playerid] == 1)
SetPlayerPos(playerid,440.8747,-1484.2687,30.6834);
if(Torcida[playerid] == 2)
SetPlayerPos(playerid,1319.9338,-632.3829,109.1349);
if(Torcida[playerid] == 3)
SetPlayerPos(playerid,1007.0027,-940.2592,42.1797);
if(Torcida[playerid] == 4)
SetPlayerPos(playerid,335.4349,-1338.4801,14.507;
dini_IntSet(arquivo, "Torcida", Torcida[playerid]);
Torcida[playerid] = dini_Int(arquivo, "Torcida");
return 1;
}

OnDialogResponse
if(dialogid == 51)
{
if(listitem == 0)
{
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
Torcida[playerid] = 0;
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,300.4022,-1154.6156,81.3892);
SetPlayerFacingAngle(playerid,269.1425);//Angulo
SendClientMessage(playerid, 0xE3E3E3FF, "**Vocк escolheu Torcida Jovem do Flamengo**");
SetPlayerColor(playerid, COLOR_UPC);
}
else if(listitem == 1)
{
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
Torcida[playerid] = 1;
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,440.8747,-1484.2687,30.6834);
SetPlayerFacingAngle(playerid,171.7183);//Angulo
SendClientMessage(playerid, 0xE3E3E3FF, "**Vocк escolheu Raзa Rubro Negra**");
SetPlayerColor(playerid, COLOR_PC);
}
else if(listitem == 2)
{
Torcida[playerid] = 2;
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,1319.9338,-632.3829,109.1349);
SetPlayerFacingAngle(playerid,269.1425);//Angulo
SendClientMessage(playerid, 0xE3E3E3FF, "**Vocк escolheu Torcida Forзa Flu**");
SetPlayerColor(playerid, COLOR_UAS);
}

ALGUEM ME AJUDA AE FAZENDO FAVOR ?


Re: [AJUDA]Nгo esta salvando onde nasce - denis15711 - 05.06.2012

NAO POSTEI MAIS PQ IA FICAR MT GRANDE


Re: [AJUDA]Nгo esta salvando onde nasce - BreakDriFT - 05.06.2012

[*pawn] [/pawn] Sem os **.


Re: [AJUDA]Nгo esta salvando onde nasce - denis15711 - 05.06.2012

SOU NOVO AKI NO FORUM, ALGUEM ME AJUDA AE FAZENDO FAVOR