[DUV] NPC conflito c/ login
#5

Quote:
Originally Posted by DarK TeaM PT
como esta o seu registo pode meter as linhas ?? so preciso das linhas que fazem com que reconheзa o jogador e mande as mensagens ou como vc tem [mas atenзгo estou a pedir й tipo exemplo:]

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(!logged)
    {
        Ban(playerid);
    }
    return 1;
}
ta a perceber??
Seria o OnPlayerSpawn?

Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) 
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); 
    if(!strcmp(npcname, "MeuPrimeiroNPC", true)) 
    {
      PutPlayerInVehicle(playerid, MeuPrimeiroNPCVehicle, 0); 
    }
    return 1;
  }
SetPlayerInterior(playerid,0);
PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
ResetPlayerWeapons(playerid);
TextDrawHideForPlayer(playerid,line1);
TextDrawHideForPlayer(playerid,line3);
TextDrawHideForPlayer(playerid,line2);
TextDrawHideForPlayer(playerid, topblack);
TextDrawHideForPlayer(playerid, bottomblack);
new randt = random(sizeof(RandomTools));
new randp = random(sizeof(RandomPistols));
GivePlayerWeapon(playerid, RandomPistols[randp][0], RandomPistols[randp][1]);
GivePlayerWeapon(playerid, RandomTools[randt][0], RandomTools[randt][1]);
return 1;
}
Reply


Messages In This Thread
[DUV] NPC conflito c/ login - by Ambrуsio - 08.03.2010, 14:56
Re: [DUV] NPC conflito c/ login - by OxygenBR - 08.03.2010, 15:54
Re: [DUV] NPC conflito c/ login - by Ambrуsio - 08.03.2010, 17:54
Re: [DUV] NPC conflito c/ login - by SlashPT - 08.03.2010, 19:50
Re: [DUV] NPC conflito c/ login - by Ambrуsio - 08.03.2010, 21:32
Re: [DUV] NPC conflito c/ login - by GuikBretas - 08.03.2010, 23:08
Re: [DUV] NPC conflito c/ login - by Ambrуsio - 09.03.2010, 00:05
Re: [DUV] NPC conflito c/ login - by SlashPT - 09.03.2010, 15:29
Re: [DUV] NPC conflito c/ login - by Ambrуsio - 09.03.2010, 15:56
Re: [DUV] NPC conflito c/ login - by SlashPT - 09.03.2010, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)