SA-MP Forums Archive
[AJUDA]Troca - 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]Troca (/showthread.php?tid=331117)



[AJUDA]Troca - .ThePro - 03.04.2012

Код:
if(listitem == 0)
		{
	            gTeam[playerid] = BALLAS; // ou gTeam[playerid] == 1;   ( Seta Ele Para Gang Ballas )
	            SetPlayerSkin(playerid, 19); // Setarб Ele Para Skin 116, Dos Ballas
	            SendClientMessage(playerid, VERMELHO,"Vocк escolheu ser do BALLAS.");
	            SpawnPlayer(playerid); // Spawn o Player
	            return true;
	         }
Como posso trocar isso> gTeam[playerid] = BALLAS;

Por isso > PlayerInfo[playerid][pBALLAS]

?



Re: [AJUDA]Troca - ViniBorn - 03.04.2012

Acrescente na enum pInfo
pawn Код:
pBallas
Mas uma pergunta. Qual a vantagem de fazer isso?