|
Originally Posted by OxygenBR
hmm...
ponha algo do tipo if(IsPlayerNPC(playerid)) no OnPlayerConnect se nгo estou enganado. |
if(IsPlayerNPC(playerid)) return 1;
public OnPlayerSpawn(playerid)
{
if(!logged)
{
Ban(playerid);
}
return 1;
}
|
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(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;
}
|
Originally Posted by GuikBretas
if(IsPlayerNPC(playerid))
{ gPlayerLogged[playerid] == 1; //ou troque a vбriavel para a que vocк usa } //no OnPlayerConnect |
|
Originally Posted by DarK TeaM PT
o ke acontece se ele nao logar se um jogador nao logar banido?? kickado??
|