[AJUDA]Nгo esta salvando onde nasce
#1

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 ?
Reply
#2

NAO POSTEI MAIS PQ IA FICAR MT GRANDE
Reply
#3

[*pawn] [/pawn] Sem os **.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)