[Ajuda] NPC nгo entra no фnibus
#2

Tente adicionar um timer, as vezes executar funзхes quando o servidor estб carregando pode ser meio falho

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
            if(!strcmp(npcname,"Al_Capone",true)) {
            SetTimerEx( "entrar", 200, false, "ii", playerid);
            return 1;
        }
        return 1;
    }
//...resto do cуdigo
return 1;
}
pawn Код:
forward entrar(playerid);
public entrar(playerid)
{
PutPlayerInVehicle(playerid, OnibusNPC, 0);
print("NPC colocado no veiculo.");
}
Reply


Messages In This Thread
NPC nгo entra no фnibus - by GuikBretas - 23.08.2015, 20:04
Re: NPC nгo entra no фnibus - by KinX - 24.08.2015, 02:49

Forum Jump:


Users browsing this thread: 3 Guest(s)