[DUV] como criar uma org
#5

Quote:
Originally Posted by Spawn*
Fбcil cara. Saiba que todo esse tipo de coisa simples assim й determinado atravйs de variбveis. Entгo vamos lб:

Код:
// No Topo:

#define ORG_DEFAULT  0

#define ORG_REPORTER 1

new Org[MAX_PLAYERS];


// Aonde vocк deseja setar a Org do jogador:

Org[playerid] = ORG_REPORTER;


// Funзгo que vocк usa para verificar se ele й Reporter:

if(Org[playerid] == ORG_REPORTER)
{
  // Funзхes
}
else
{
  SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й Reporter.");
}


// Digamos que vocк queira setar/disponiblizar alguma coisa para todos os Reporteres:

for(new i = 0; i < MAX_PLAYERS; i++)
{
  if(Org[i] == ORG_REPORTER)
  {
    // Funзхes
  }
}
valeu cara tambem tava precisando aprender, quanto mais saber melhor
Reply


Messages In This Thread
[DUV] como criar uma org - by hitachi_uchila - 25.01.2010, 20:37
Re: [DUV] como criar uma org - by JustinSton - 25.01.2010, 20:51
Re: [DUV] como criar uma org - by hitachi_uchila - 25.01.2010, 21:15
Re: [DUV] como criar uma org - by Spawn* - 25.01.2010, 22:03
Re: [DUV] como criar uma org - by Lucas_Brasil - 25.01.2010, 22:09
Re: [DUV] como criar uma org - by hitachi_uchila - 25.01.2010, 22:32
Re: [DUV] como criar uma org - by John_Race - 25.01.2010, 22:48
Re: [DUV] como criar uma org - by hitachi_uchila - 26.01.2010, 08:50
Re: [DUV] como criar uma org - by Spawn* - 26.01.2010, 12:28
Re: [DUV] como criar uma org - by Thebest96 - 21.08.2010, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)